import math

X = int(eval(input()))

a, b = 100, 1

while 1:

    a += math.floor(a * 0.01)

    if a >= X:

        print(b)

        break

    b += 1
import math

X = int(eval(input()))

a, b = 100, 1

while 1:

    a += int(a * 0.01)

    if a >= X:

        print(b)

        break

    b += 1
import math

X = int(eval(input()))
a, b = 100, 1
while 1:
    a += math.floor(a * 0.01)
    if a >= X:
        print(b)
        break
    b += 1

import math

X = int(eval(input()))
a, b = 100, 1
while 1:
    a += int(a * 0.01)
    if a >= X:
        print(b)
        break
    b += 1

-    a += math.floor(a * 0.01) +    a += int(a * 0.01)