x = int(eval(input()))

yen = 100

rate = 101 # 1.01*100

year = 0

while yen < x:

    yen *= rate

    yen //= 100

    year += 1

print(year)

x = int(eval(input()))

yen, year = 100, 0

while yen < x:

    yen += yen//100

    year += 1

print(year)

x = int(eval(input()))
yen = 100
rate = 101  # 1.01*100
year = 0
while yen < x:
    yen *= rate
    yen //= 100
    year += 1
print(year)

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

-yen = 100 -rate = 101  # 1.01*100 -year = 0 +yen, year = 100, 0 -    yen *= rate -    yen //= 100 +    yen += yen // 100