x = int(eval(input()))

money = 100

year = 0



while money < x:

  money += int(money / 100)

  year += 1

  

print(year)

x = int(eval(input()))

money = 100

year = 0



while money < x:

  money += money // 100

  year += 1

  

print(year)

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

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

-    money += int(money / 100) +    money += money // 100