n1=1
c9=1
m9=9
sum=9
while True:
zi = int(input('请输入一个数字:'))
if zi%5!=0:
while n1!=0:
if sum%zi==0:
n1=0
else:
m9*=10
sum+=m9
c9+=1
else:
print('5的倍数不行,重新输入')
continue
print('%d个9可以被%d整除:%d'%(c9,zi,sum))
r=sum/zi
print('%d/%d=%d'%(sum,zi,r))
break