money = int(input())
limit, percent, years = 700000, 1.071, 0
while money <= limit:
    years += 1
    money *= percent
    # print(money)
print(years)

e44f976028ab1ff2855e934b026e12b1c3eebf06
<mask token>

<mask token>
while money <= limit:
    years += 1
    money *= percent
print(years)

money = int(input())
limit, percent, years = 700000, 1.071, 0
while money <= limit:
    years += 1
    money *= percent
print(years)

money = int(input())
limit, percent, years = 700000, 1.071, 0
while money <= limit:
    years += 1
    money *= percent
    # print(money)
print(years)
