n = 0

m = 100

X = int(eval(input()))

while m < X:

    m += (m // 100)

    n += 1

print(n)

X = int(eval(input()))

n = 0

x = 100

while x < X:

  x += x // 100

  n += 1

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

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

+X = int(eval(input())) -m = 100 -X = int(eval(input())) -while m < X: -    m += m // 100 +x = 100 +while x < X: +    x += x // 100