Takahashi has a deposit of 100 yen (the currency of Japan) in AtCoder Bank.
The bank pays an annual interest rate of 1 % compounded annually. (A fraction of less than one yen is discarded.)
Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach X yen or above for the first time?

-----Constraints-----
 -  101 \le X \le 10^{18} 
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
X

-----Output-----
Print the number of years it takes for Takahashi's balance to reach X yen or above for the first time.

-----Sample Input-----
103

-----Sample Output-----
3

 - The balance after one year is 101 yen.
 - The balance after two years is 102 yen.
 - The balance after three years is 103 yen.
Thus, it takes three years for the balance to reach 103 yen or above.

Difficulty: introductory

Starter code:

Solutions:
X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit += deposit // 100

print(y_later)

from decimal import Decimal


def com_interest(n: int) -> int:
    saving = Decimal('100')
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = int(saving * Decimal('1.01'))
        if saving >= n:
            break
    return years


print((com_interest(int(input()))))


x = int(input())
money = 100
years = 0

while money < x:
    money += money // 100
    years += 1

print(years)

import math

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


X=int(input())

value=100
year=1

while True:
  value=value+value//100
  #print('value', value)
  if value>=X:
    print(year)
    break
  else:
    year=year+1

# B - 1%

# X
X = int(input())

Y = 100
count = 0
while X > Y:
    Y += Y // 100
    count += 1

print(count)


from decimal import Decimal
X = int(input())
n = 0
money = 100
while True:
    money += int(money * Decimal("0.01"))
    #print(money)
    n += 1
    if money >= X:
        print(n)
        break

x = int(input())
money = 100
cnt = 0

while x > money:
    money += money//100
    cnt += 1
print(cnt)


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

X = int(input())
now = 100
for i in range(10000):
  now *= 101
  now //= 100
  if now >= X:
    print(i+1)
    break

x = int(input())

m = 100
ans = 0
while m < x:
  m += m // 100
  ans += 1

print(ans)


  
def atc_165b(X: int) -> int:
    savings = 100
    years = 0

    while savings < X:
        years += 1
        # savings += savings * 0.01 * 100 // 100
        savings += savings // 100
    return years


X = int(input())
print((atc_165b(X)))


x=int(input())
ans=0
cnt=0
t=100
while(True):
    cnt += 1
    t+=t//100
    # print(t)
    if x<=t:
        print(cnt)
        return


from math import floor
from fractions import Fraction
from decimal import Decimal


def com_interest(n: int) -> int:
    saving = Decimal(100)
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        b = Decimal('1.01')
        saving = int(saving) * b
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

X = int(input())
money = 100
years = 0

while money < X:
    money += money // 100
    years += 1
print(years)

x=int(input())

yo=100
n=0

while x>yo:
    yo+=yo//100
    n+=1
print(n)

#from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
# from math import gcd
# from itertools import combinations,permutations,accumulate, product # (string,3) 3回
# #from collections import deque
# from collections import deque,defaultdict,Counter
# import decimal
# import re
# import math
# import bisect
# import heapq
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#
# my_round_int = lambda x:np.round((x*2 + 1)//2)
# 四捨五入g
#
# インデックス系
# int min_y = max(0, i - 2), max_y = min(h - 1, i + 2);
# int min_x = max(0, j - 2), max_x = min(w - 1, j + 2);
#
#
import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7
#mod = 9982443453
#mod = 998244353
INF = float('inf')
from sys import stdin
readline = stdin.readline
def readInts():
  return list(map(int,readline().split()))
def readTuples():
    return tuple(map(int,readline().split()))
def I():
    return int(readline())
X = I()
m = 100
cnt = 0
while m < X:
    m += m//100
    cnt += 1
print(cnt)


X = int(input())
i = 100
count = 0

while i < X:
  i += i//100
  count += 1

print(count)

x = int(input())
ans = 0
val = 100
while 1:
    ans += 1
    val += val // 100
    if val >= x:
        break
print(ans)


import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp

INF = inf
MOD = 1000000007

x = int(input())

tmp = 100
res = 0

while True:
    res += 1
    tmp = tmp * 101 // 100
    if tmp >= x:
        break

print(res)


count = 0
N = int(input())
now = 100
while N > now:
    now += now//100
    count += 1
print(count)

x = int(input())
res = 0
m = 100
while(m < x):
    m *= 101
    m //= 100
    res += 1

print(res)

from math import floor

X = int(input())

money = 100
year = 0
while money < X:
  year += 1
  money += money // 100
print(year)

x=int(input())
a=100
count=0
while a<x:
    a+=a//100
    count+=1
print(count)

X = int(input())
cur = 100
cnt = 0
while cur < X:
    cur = cur * 101 // 100
    cnt += 1
print(cnt)


X = int(input())
money = 100
y = 0
while True:
  money = 101 * money // 100
#  print(money)
  y += 1
  if money >= X:
    print(y)
    break

x = int(input())
yen = 100
cnt = 0
while yen < x:
    yen = yen*101//100
    cnt += 1

print(cnt)

x = int(input())
#基礎のデータの設定をする
#残高y100円　年数nを0とする
y = 100
n = 0
#毎年金利1％だから繰り返し
while y < x:
    n += 1
    y += y//100
print(n)

X = int(input())

count = 0
n = 100
while n < X:
    n += n//100
    count += 1
else:
    print(count)

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

# 預金額がｘ円以上になるまで繰り返し
while deposit < x:
    # 金利の小数点以下は切り捨て
    deposit = deposit + (deposit // 100)
    # 年数をカウントアップ
    answer_year += 1

print(answer_year)

X = int(input())
ii = 0
k = 100
while k < X :
    ii += 1
    k += k//100
print(ii)

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

from decimal import Decimal


def com_interest(n: int) -> int:
    saving = 100
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = int(saving * Decimal('1.01'))
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

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

import math

X = int(input())

money = 100
year = 0

while True:
    money = money + money // 100
    year += 1

    if money >= X:
        break

print(year)

x=int(input())
curr=100
ans=0
while curr<x:
    curr=curr+curr//100
    ans+=1
print(ans)


x = int(input())
money = 100
cnt = 0
while money < x :
    money += money//100
    cnt += 1
print(cnt)

x=int(input())
ans=0
cnt=0
t=100
while(True):
    cnt += 1
    t*=101
    t//=100
    # print(t)
    if x<=t:
        print(cnt)
        return


import math

X = int(input())

n, m = 0, 100

while True:
    m += m // 100
    n += 1
    if X <= m:
        print(n)
        break


x = int(input())
cnt = 0
yen = 100

while yen < x:
    yen += yen//100
    cnt += 1

print(cnt)

import sys
def input(): return sys.stdin.readline().rstrip()
import math

X = int(input())

ans = False
money = 100
year = 0
while money < X:
    money += money // 100
    year += 1

print(year)


import math
X = int(input())

money, cnt = 100, 0
while money<X:
  money += money // 100
  cnt+=1
print(cnt)

X = int(input())
cur = 100
ans = 0
while cur < X:
    cur = cur * 101 // 100
    ans += 1
print(ans)

X = int(input())
yen = 100
count = 0

while yen < X:
    yen = (yen * 101) // 100
    count += 1

print(count)

X = int(input())

money = 100
year = 0

while True:
    if money >= X:
        break
    money += money // 100
    year += 1

print(year)

X = int(input())
ans = 0
Y = 100
while Y < X:
  Y += Y // 100
  ans += 1
print(ans)


X = input()
X = int(X)

M = 100
cnt = 0
while M < X:
    M = M + M // 100
    cnt += 1

print(cnt)

def answer(x: int) -> int:
    years = 0
    deposit = 100
    while deposit < x:
        deposit += deposit // 100
        years += 1
    return years


def main():
    x = int(input())
    print((answer(x)))


def __starting_point():
    main()

__starting_point()

from decimal import Decimal


def com_interest(n: int) -> int:
    saving = 100
    interest_per = 0.01
    years = 0

    while True:
        years += 1
        saving = int(saving * Decimal('1.01'))
        if saving >= n:
            break
    return years


print(com_interest(int(input())))

x = int(input())
ans = 0
x2 = 100
for _ in range(1, 3761):
    if x2 < x:
        x2 += x2 // 100
        ans += 1

print(ans)

n,count,k=100,0,int(input())
while n<k:
  n+=n//100;count+=1
print(count)

#ABC165
X=int(input())
mon = 100
count = 0
while mon < X:
    mon += mon//100
    count += 1

print(count)

x = int(input())
now = 100
cnt = 0
while now < x:
    now += now//100
    cnt += 1
print(cnt)

x = int(input())
m = 100
y = 0
while not(m>=x):
  y += 1
  m += m // 100
print(y)

x = int(input())

a = 100

i = 1
while 1:
    a += (a // 100)
    if a >= x:
        print(i)
        return
    i += 1

import math
x = int(input())
now = 100
ans = 0
while(now < x):
    ans += 1
    now += now//100
print(ans)


x=int(input())

m=100
i=0
while 1:
    m += m//100
    i+=1
    if m>=x:
        break

print(i)


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

X = int(input())

money = 100
year = 0

while True:
    if money >= X:
        break
    money += money//100
    year += 1

print(year)

import math
from collections import Counter
from itertools import product

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

x = ii()

cnt = 0
money = 100
while 1:
    if money >= x:
        print(cnt)
        return
    else:
        money += money//100
        cnt += 1

import math

x = int(input())

a = 100
year = 0

for i in range(10 ** 10):
    a += a // 100
    year += 1

    if a >= x:
        break

print(year)


import math
 
x = int(input())
money = 100
ans = 0
while money < x:
    money += money // 100
    ans += 1
    
print(ans)

x = int(input())
ans = 0
yokin = 100
while yokin < x:
    ans += 1
    yokin += yokin//100
print(ans)

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

# 預金額がｘ円以上になるまで繰り返し
while deposit < x:
    # 小数点以下を切り捨て
    deposit = deposit + (deposit // 100)
    # 年数をカウントアップ
    answer_year += 1

print(answer_year)

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

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

print(year)

X = int(input())
money = 100
cnt = 0
while money < X:
  cnt += 1 
  money += money//100
print(cnt)

X = int(input())

# 現在の貯金額100円（年間利子1％）
# 預金額が初めて X円以上 になるのは何年後かを出力

count = 0
saving = 100

while saving < X:
    saving += saving // 100
    count += 1

print(count)

x = int(input())
now = 100
cnt = 0
while now < x:
    now += now//100
    cnt += 1
print(cnt)

# 1年後 m1 = 100 * 1.01
# 2年後 m2 = m1 * 1.01
# 3年後 m3 = m2 * 1.01

x = int(input())
m = 100
y = 0
while m < x:
    m += m // 100
    y += 1
print(y)

X = int(input())
money = 100
year = 0
while money < X:
    money = money + money//100
    year += 1
print(year)

def __starting_point():

    x = int(input())

    ans = 100
    cnt = 0
    
    while True:
        ans = ans + (ans // 100)
        if ans >= x:
            cnt += 1
            break
        cnt += 1
    print(cnt)


__starting_point()

x=int(input())
price=100
answer=0
 
while x>price:
  price=price+price//100
  answer+=1

print(answer)

X = int(input())
Y, M = 0, 100
while M < X:
    M += M // 100
    Y += 1
print(Y)

a=int(input())
i=100
f=0
while i<a:
  i=i+i//100
  f=f+1
print(f)

x = int(input())

year = 0 # 答え
money = 100 # 初期値の100円

# x円以上になるまでループを回す
while money < x:
    money =money*101//100
    year += 1

print(year)


x=int(input())
m=100
cnt=0
while m<x:
    #m=int(m*1.01)
    m+=m//100
    cnt+=1
print(cnt)


X = int(input())
G = 100
after_year = 0

while X > G:
    G += G // 100
    after_year += 1

print(after_year)

x = int(input())
m = 100
y = 0
while m < x:
  m += m//100
  y += 1
print(y)

X=int(input())

n=100
ans=0

while n<X:
    n+=n//100
    ans+=1

print(ans)


X=int(input())
y=100
n=0
while y<X:
    y=101*y//100
    n+=1
print(n)

n = int(input())
s = 100
ans = 0
while s < n:
  s += s//100
  ans += 1
print(ans)

x = int(input())
count = 0
m = 100
while m<x:
  m += m//100
  count += 1
print(count)

X = int(input())
ans = 0
m = 100
while(m < X):
    m = (m*101)//100
    ans += 1
print(ans)

import sys
b = int(input())
num = 100
year =0
for i in range(10**18):
    num += num//100
    year +=1
    if int(num) >=b:
        print(year)
        return


def main():
    x = int(input())
    start = 100
    cnt = 0
    while start < x:
        start += start // 100
        cnt += 1
    return cnt


def __starting_point():
    print((main()))

__starting_point()

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

x = int(input())
money = 100
count = 1
while True:
    money += money // 100
    if money >= x:
        break
    count += 1
print(count)


x = int(input())
co = 100
i = 0
while co < x:
    co += co // 100
    i += 1
print(i)

import math
def i_input(): return int(input())
def i_map(): return list(map(int, input().split()))
def i_list(): return list(map(int, input().split()))
def i_row(N): return [int(input()) for _ in range(N)]
def i_row_list(N): return [list(map(int, input().split())) for _ in range(N)]

x=i_input()
cnt=0
num=100
while True:
    if num>=x:
        break
    num+=num//100
    cnt+=1

print(cnt)


x = int(input())
a = 100
b = 0
while a < x:
    a = (a * 101) // 100
    b += 1
print(b)

X=int(input())

n=100
ans=0

while n<X:
    n+=n//100
    ans+=1

print(ans)

# 預金額 = 元金 + 元金 * 利子

# 将来価値
X = int(input())

# 現在価値
pv = 100

# 収益率
r = 0.01

# 必要年数
year = 0

while pv < X:
    pv = pv + pv // 100
    year += 1

print(year)


# 高橋くんはAtCoder銀行に 100 円を預けています。 AtCoder銀行では、毎年預金額の 1 % の利子がつきます(複利、小数点以下切り捨て)。
# 利子以外の要因で預金額が変化することはないと仮定したとき、高橋くんの預金額が初めて X 円以上になるのは何年後でしょうか。

X = int(input())

i = 0
a = 100
while a < X:
        a += a // 100
        i += 1

print(i)

import math 
X = int(input())

ret = 100
cnt = 0
while ret < X:
  ret += ret //100
  cnt += 1

print(cnt)

import math

x = int(input())
cnt = 0
yen = 100
while yen < x:
    yen = yen*101//100
    cnt += 1

print(cnt)

import math
x=int(input())
i=2
a=[101]
while True:
    if x==101:
        print(1)
        break
    t=math.floor(a[i-2]+a[i-2]//100)
    a.append(t)
    if t>=x:
        print(i)
        break
    i+=1

X = int(input())

ans = 0
deposit = 100

while deposit < X:
    deposit = deposit + (deposit // 100)
    ans += 1

print(ans)

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

yen=100
X=int(input())
count=0
while True:
    i=yen//100
    yen=yen+i
    count=count+1
    if yen>=X:
        print(count)
        break