X=int(eval(input()))

year=0

deposit=100

while deposit<X:

    deposit=deposit+int(deposit*0.01)

    year+=1

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

year=0

deposit=100

while deposit<X:

    deposit=deposit*101//100

    year+=1

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

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

-    deposit = deposit + int(deposit * 0.01) +    deposit = deposit * 101 // 100