X=int(eval(input()))

t=100

ans=0

while t<X:

    ans+=1

    t=int(t*1.01)

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

t=100

ans=0

while t<X:

    ans+=1

    t=t*101//100

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

X = int(eval(input()))
t = 100
ans = 0
while t < X:
    ans += 1
    t = t * 101 // 100
print(ans)

-    t = int(t * 1.01) +    t = t * 101 // 100