X = int(eval(input()))

count = 0

sum = 100







while sum < X:

    sum += sum // 100

    count += 1





print(count)

X = int(eval(input()))

sum = 100

count = 0



while sum < X:

    sum += int(sum * 0.01)

    count += 1



print(count)

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

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

+sum = 100 -sum = 100 -    sum += sum // 100 +    sum += int(sum * 0.01)