x=int(eval(input()))

n=100

cnt=0

while n<x:

    cnt+=1

    n*=101

    n//=100

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

n=100

cnt=0

while n<x:

    cnt+=1

    n+=n//100

print(cnt)

x = int(eval(input()))
n = 100
cnt = 0
while n < x:
    cnt += 1
    n *= 101
    n //= 100
print(cnt)

x = int(eval(input()))
n = 100
cnt = 0
while n < x:
    cnt += 1
    n += n // 100
print(cnt)

-    n *= 101 -    n //= 100 +    n += n // 100