x = int(eval(input()))

depo = 100

year = 0

while(True):

    if(depo >= x):

        break

    depo += int(depo * 0.01)

    year += 1

print(year)
x = int(eval(input()))

depo = 100

year = 0

while depo < x:

        depo += int(depo * 0.01)

        year += 1

print(year)
x = int(eval(input()))
depo = 100
year = 0
while True:
    if depo >= x:
        break
    depo += int(depo * 0.01)
    year += 1
print(year)

x = int(eval(input()))
depo = 100
year = 0
while depo < x:
    depo += int(depo * 0.01)
    year += 1
print(year)

-while True: -    if depo >= x: -        break +while depo < x: