X = int(eval(input()))

year = 0

deposit = 100

while deposit < X:

    deposit = deposit*101//100

    year = year+1

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

year=0

deposit=100

while deposit<X:

    deposit+=deposit//100

    year+=1

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

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

-    deposit = deposit * 101 // 100 -    year = year + 1 +    deposit += deposit // 100 +    year += 1