X = int(eval(input()))



save = 100

count = 0

while save < X:

    save += int(save * 0.01)

    count += 1    

print(count)
X = int(eval(input()))



m = 100

count = 0

while m < X:

    m *= 1.01

    m = int(m)

    count += 1

print(count)
X = int(eval(input()))
save = 100
count = 0
while save < X:
    save += int(save * 0.01)
    count += 1
print(count)

X = int(eval(input()))
m = 100
count = 0
while m < X:
    m *= 1.01
    m = int(m)
    count += 1
print(count)

-save = 100 +m = 100 -while save < X: -    save += int(save * 0.01) +while m < X: +    m *= 1.01 +    m = int(m)