X = int(eval(input()))

now = 100

ans = 0

while now < X:

    now *= (101)

    now //= 100

    ans += 1

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

now = 100

ans = 0

while now < X:

    now += now//100

    ans += 1

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

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

-    now *= 101 -    now //= 100 +    now += now // 100