# https://atcoder.jp/contests/abc165/tasks/abc165_b

x = int(input())
year = 0
deposit = 100

while(deposit < x):
	year += 1
	deposit += int(deposit/100)

print(year)
94e39b41499447aa25fccd50f9cc2bdb862d42fb
<mask token>

<mask token>
while deposit < x:
    year += 1
    deposit += int(deposit / 100)
print(year)

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

# https://atcoder.jp/contests/abc165/tasks/abc165_b

x = int(input())
year = 0
deposit = 100

while(deposit < x):
	year += 1
	deposit += int(deposit/100)

print(year)