s=100000 z=0 for a in range(999): if s>50000: s=s*0.95 z+=1 else: s=s-5000 z+=1 if s<5000: break print(z)