import sys

input = sys.stdin.readline

from collections import *



X = int(eval(input()))

now = 100

ans = 0



while now<X:

    now = int(1.01*now)

    ans += 1



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

now = 100

ans = 0



while now<X:

    now += now//100

    ans += 1



print(ans)
import sys

input = sys.stdin.readline
from collections import *

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

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

-import sys - -input = sys.stdin.readline -from collections import * - -    now = int(1.01 * now) +    now += now // 100