Problem:


Score : 200 points

Problem Statement

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 1

103

Sample Output 1

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.

Sample Input 2

1000000000000000000

Sample Output 2

3760

Sample Input 3

1333333333

Sample Output 3

1706



Sample input:
103


Sample output:
3

Submission status: Accepted

Solution code:
X=int(input())

a=100
r=1.01
y=0

while a<X:
    y+=1
    a=int(a*r)

print(y)

Submission status: Accepted

Solution code:
X = int(input())
year = 0
deposit = 100
while deposit < X:
    deposit = deposit*101//100
    year += 1
print(year)

Submission status: Accepted

Solution code:
n = int(input())
x = 100
ans = 0
while n > x:
    x = int(1.01 * x)
    ans = ans + 1
print(ans)

Submission status: Accepted

Solution code:
from math import log, ceil

x = int(input())

n = 100
c = 0
while n < x:
    n += n // 100
    c += 1

print(c)

Submission status: Accepted

Solution code:
X=int(input())

YOKIN=100

COUNT=0
while X > YOKIN:
    YOKIN = int(YOKIN * 1.01)
    COUNT += 1

print(str(COUNT))

Submission status: Accepted

Solution code:
X=int(input())

YOKIN=100

COUNT=0
while X > YOKIN:
    YOKIN = int(YOKIN * 1.01)
    COUNT += 1

print(str(COUNT))

Submission status: Accepted

Solution code:
import math
x=int(input())
n=1
k=math.floor(100*1.01)
while k<x:
    k=math.floor(k*1.01)
    n+=1
print(n)

Submission status: Accepted

Solution code:
X = int(input())
sum = 100
year = 0

while(sum < X):
  sum = int(sum * 1.01)
  year += 1
  
print(year)

Submission status: Accepted

Solution code:
x = int(input())

count = 0
n = 100
while x > n:
    n = int(n * 1.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
x = int(input())
y = 100
cnt = 0

while y < x:
    y += int(y * 0.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())

current = 100

year = 0
while(current < x):
    current += int(current * 0.01)
    year += 1

print(year)

Submission status: Accepted

Solution code:
X=int(input())
year = 0
deposit = 100 
while  deposit < X :
    deposit = deposit*101//100
    year += 1
print(year)

Submission status: Accepted

Solution code:
import math

x = int(input())
k = 0
p = 100

while p < x:
    p = p + int(p/100)
    k = k + 1

print(k)

Submission status: Accepted

Solution code:
X=int(input(""))
rent=100
i=0

while rent<X:
    rent=int(rent*1.01)
    i=i+1

print(str(i))

Submission status: Accepted

Solution code:
X = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
x = int(input())

ans = 0
cnt = 100
while(1):
    cnt = int(cnt * 1.01)
    ans += 1
    if cnt >= x:
        print(ans)
        exit(0)

Submission status: Accepted

Solution code:
x=int(input())
c=0
k=100
while(k<x):
    k+=k//100
    c+=1
print(c)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
x = int(input())
p = 100
for i in range(10000):
    if p >= x:
        print(i)
        exit()
    p += p // 100

Submission status: Accepted

Solution code:
import math

X = int(input())
now = 100
count = 0
while(True):
    count += 1
    now = math.floor(now * 1.01)
    if now >= X:
        print(count)
        break

Submission status: Accepted

Solution code:
import math
deposit = 100

x = int(input())
year = 0
while deposit < x:
    deposit = math.floor(deposit * 1.01)
    year += 1

print(year)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
d = 100
y = 0
 
while d < x:
    d = int(d * 1.01)
    y += 1
 
print(y)

Submission status: Accepted

Solution code:
# AtCoder
import math
X = int(input())
mon = 100
count = 0
while mon <= X:
    mon += math.floor(mon*0.01)
    count += 1
    if mon >= X:
        break
print(count)

Submission status: Accepted

Solution code:
x = int(input())

year = 0
money = 100
while(True):
    money *= 1.01
    money = money // 1
    year += 1
    if(money >= x):
        break

print(str(year))

Submission status: Accepted

Solution code:
X = int(input())
money = 100
year = 0
while True:
    money = money * 1.01
    money = int(money) 
    year += 1
    if money >= X:
        print(year)
        break

Submission status: Accepted

Solution code:
X = int(input())
money = 100
ans = 0

while money < X:
    money = int(money*1.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
a = int(input())
b = 100
x = 0
for i in range(a):
    if b >= a:
        break
    else:
        b = b + int(b / 100)
        x = x + 1
print(x)

Submission status: Accepted

Solution code:
goal = int(input())
deposit = 100
year = 0

while deposit < goal:
    deposit = int(deposit * 1.01)
    year += 1

print(year)

Submission status: Accepted

Solution code:
import math


def resolve():
    x = int(input())
    c = 100
    i = 0
    while c < x:
        i += 1
        c = math.floor(c * 1.01)
    print(i)
resolve()

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
#from operator import itemgetter
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
X = I()
x = 100
i = 0
while x < X:
  x = math.floor(x*1.01)
  i+=1
print(i)

Submission status: Accepted

Solution code:
from math import floor
n = int(input())
p = 100
i = 0
while(n > p):
    p = floor(p*1.01)
    i += 1
print(i)

Submission status: Accepted

Solution code:
import math

def child(n):
    return math.floor(n*1.01) 

x = int(input())
value = 100
ans = 0

while(value < x):
    value = child(value)
    ans +=1

print(ans)

Submission status: Accepted

Solution code:
X = int(input())
year = 0
money = 100
while money < X:
    money = int(money*1.01)
    year += 1
print(year)

Submission status: Accepted

Solution code:
X = int(input())
amount = 100
i = 0
while amount < X:
    amount = int(amount + 0.01*amount)
    i = i +1
print(i)

Submission status: Accepted

Solution code:
x = int(input())
money = 100
i=0
while(money<x):
	money = int(money*1.01)
	i+=1
print(i)

Submission status: Accepted

Solution code:
X = int(input())
money = 100
cnt = 0
while True:
    cnt += 1
    money = int(money * 1.01)
    if money >= X:
        break
print(cnt)

Submission status: Accepted

Solution code:
import math
x=int(input())
a=100
i=0
while a<x:
    a=math.floor(a*101/100)
    i+=1
print(i)

Submission status: Accepted

Solution code:
# -*- coding: <encoding name> -*-

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

while deposit < x:
	year += 1
	deposit = deposit * 101 // 100
print(year)

Submission status: Accepted

Solution code:
import math
x=int(input())
stk=100
for i in range(10000):
    stk=math.floor(stk*1.01)
    if stk>=x:
        print(i+1)
        break

Submission status: Accepted

Solution code:
x = int(input())
n = 100
c = 0
while n < x:
    n = int(n*1.01)
    c += 1
print(c)

Submission status: Accepted

Solution code:
x = int(input())
m = 100
i = 0

while True:
    if x <= m:
        break
    else:
        m += m // 100
        i += 1

print(i)

Submission status: Accepted

Solution code:
x = input()
a = 100
c = 0

while a < int(x):
  a += int(a * 0.01)
  c += 1
print(c)

Submission status: Accepted

Solution code:
X = int(input())
sum = 100
count = 0

while sum < X:
    sum += int(sum * 0.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input())
B = 100
i = 0
while B < X:
     B = (B * 101) // 100
     i += 1
print(i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x = int(input())

y=0
chokin=100
while(chokin<x):
    chokin = chokin + math.floor(chokin*0.01)
    y+=1

print(y)

Submission status: Accepted

Solution code:
import math

x=int(input())
trial=0
p=100
while p<x:
  trial+=1
  p=p*1.01
  p=math.floor(p)
print(trial)

Submission status: Accepted

Solution code:
X = int(input())
m = 100.0
cnt = 0
while m < X:
    cnt += 1
    m = int(m*1.01)
print(cnt)

Submission status: Accepted

Solution code:
x = int(input()) 
c = 100
r = 0
while c < x:
    c = c + int(c*0.01)
    r += 1
print(r)

Submission status: Accepted

Solution code:
n = 100
m = int(input())
a = 0
for i in range(1,10**18+1):
    n = n * 1.01
    n = n // 1
    if n >= m:
        a += i
        break

print(a)

Submission status: Accepted

Solution code:
from math import floor
X = int(input())
money = 100
year = 0
while money < X:
  money = floor(money * 1.01)
  year += 1
print(year)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
year = 0

while money < X:
  money = int(money * 1.01)
  year += 1
  
print(year)

Submission status: Accepted

Solution code:
X = int(input())
year = 0
money = 100
while money < X:
  year += 1
  money = int(money*1.01)
  
print(int(year))

Submission status: Accepted

Solution code:
X = int(input())
 
Deposit = 100
ans = 0
 
while Deposit < X:
  Deposit = int(Deposit * 1.01)
  ans += 1
  
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


def main():
    import sys
    input = sys.stdin.readline

    money = 100
    x = int(input())

    for i in range(1, 4000):
        money *= 1.01
        money = int(money)

        if money >= x:
            print(i)
            exit()


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())
money = int(100)
cnt = 0

while (money < x):
    money = int(money * 1.01)
    cnt += 1
    

print(cnt)

Submission status: Accepted

Solution code:
import math
x=int(input())
t=100
count=0
while t<x:
    t+=math.floor(t*0.01)
    count+=1
print(count)

Submission status: Accepted

Solution code:
import sys
#from collections import defaultdict, deque, Counter
#import bisect
#import heapq
#import math
#from itertools import accumulate
#from itertools import permutations as perm
#from itertools import combinations as comb
#from itertools import combinations_with_replacement as combr
#from fractions import gcd
#import numpy as np

stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)
MIN = -10 ** 9
MOD = 10 ** 9 + 7
INF = float("inf")
IINF = 10 ** 18

def main():
    x = int(stdin.readline().rstrip())
    #A, B, C = map(int, stdin.readline().rstrip().split())
    #l = list(map(int, stdin.readline().rstrip().split()))
    #numbers = [[int(c) for c in l.strip().split()] for l in sys.stdin]
    #word = [stdin.readline().rstrip() for _ in range(n)]
    #number = [[int(c) for c in stdin.readline().rstrip()] for _ in range(n)]
    #zeros = [[0] * w for i in range(h)]
    t = 100
    for i in range(10**10):
        t = t*1.01//1
        if t >= x:
            print(i+1)
            exit()


main()

Submission status: Accepted

Solution code:
x=int(input())
m=100
y=0
while (m<x):
    m=int(m*1.01)
    y=y+1
print(y)

Submission status: Accepted

Solution code:
x=int(input())
a=100
b=0
while a<x:
  a=int(a*1.01)
  b+=1
print(b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

deposit = 100
y = 0

while deposit < X:
    deposit = int(deposit * 1.01)
    y += 1

print(y)

Submission status: Accepted

Solution code:
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    x = int(input())
    m = 100
    ans = 0
    while m < x:
        m = int(m * 1.01)
        ans += 1
    print(ans)


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

Submission status: Accepted

Solution code:
i=0
n=int(input())
while n>100:
    i+=1
    n=-(-n//1.01)
print(i)

Submission status: Accepted

Solution code:
import math
x = int(input())
money = 100 
n = 0
while True:
    n += 1
    money *= 1.01
    money = math.floor(money)
    if money >= x :
        print(n)
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input().rstrip())
v = 100

n = 0
while v < x:
    v = int(v * 1.01)
    n += 1

print(n)

Submission status: Accepted

Solution code:
X = int(input())
n = 100
year = 0
while True:
    year += 1
    n = int(n*1.01)
    if n >= X:
        break
print(year)

Submission status: Accepted

Solution code:
import sys

x = int(input())
n = 100
for i in range(1, 3800):
    n = int(n*1.01)
    if n >= x:
        print(i)
        sys.exit()

Submission status: Accepted

Solution code:
first=100
ans=0
N=int(input())
while first < N:
   ans+=1
   first*=1.01
   first=int(first)
print(ans)

Submission status: Accepted

Solution code:
import math

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

for i in range(3800):
    if (a < x):
        a = math.floor(a * 1.01)
        cnt += 1
    else:
        break

print(cnt)

Submission status: Accepted

Solution code:
X=int(input())
n=0
money=100
while money<=10**19:
    if money<X :
        money=int(money*1.01)
        n=n+1
    else :
        print(n)
        break

Submission status: Accepted

Solution code:
a = int(input())
i = 0
t = 100
while 1:
    t = int(t * 1.01)
    i += 1
    if t >= a:
        break
print(i)

Submission status: Accepted

Solution code:
#B
X = int(input())
dep = 100
cnt = 0
while dep<X:
    dep += dep*0.01//1
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
import math
target = int(input())

sum = 100
count = 0

while sum < target:
    sum = math.floor(sum * 1.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    x = input()
    x = int(x)

    count = 0

    deposit = 100

    while deposit < x:
        deposit += int(deposit*0.01)
        count += 1

    print(count)

Submission status: Accepted

Solution code:
inp = int(input())

def solve(value):
    current = 100
    for i in range(1000000):
        current = int(current * (1.01**1))
        if current >= value:
            print(i+1)
            return

solve(inp)

Submission status: Accepted

Solution code:

X=int(input())

i=100
oh=[]
while i<X:
    i+=i//100
    oh.append(i)
else:
    print(len(oh))

Submission status: Accepted

Solution code:
x = int(input())
a = 100
count = 0
while a < x:
    a = int(a*1.01)
    count += 1
print(count)

Submission status: Accepted

Solution code:
X=int(input())

import math
P=100
for i in range(4000):
    P+=math.floor(P/100)
    if P<X:
        continue
    elif P>=X:
        print(i+1)
        break

Submission status: Accepted

Solution code:
from math import floor

X = int(input())
year = 0
d = 100
while d < X:
    d = d + floor(d * 0.01)
    year += 1
print(year)

Submission status: Accepted

Solution code:
def solve(string):
    i, c = 0, 100
    while c < int(string):
        i += 1
        c = c * 1.01 // 1
    return str(i)


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Submission status: Accepted

Solution code:
X = int(input())
money = 100
year = 0

while money < X:
    year += 1
    money = int(money * 1.01)

print(year)

Submission status: Accepted

Solution code:
x=int(input())

d=100
y=d
i=0
while(y<x):
    y=int(y*1.01)
    i+=1

print(i)

Submission status: Accepted

Solution code:
x = int(input())

money = 100
h = 0
while money <= x:
    h += 1
    money = int(money * 1.01)
    if money >= x:
        print(h)
        exit(0)

Submission status: Accepted

Solution code:
import math


def main():
    x = int(input())
    year = 0
    ans = 100

    while ans < x:
        ans = math.floor(ans*1.01)
        year += 1
    print(year)
    return


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
X = int(input())
a = 100
cnt = 0
while a < X:
    a = int(a*1.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
X = int(input())
bank = 100
year = 0
while bank < X:
    bank = bank * 101 // 100
    year += 1
print(year)

Submission status: Accepted

Solution code:
X=int(input())
year=0
deposit=100
while deposit<X:
    deposit=deposit+int(deposit*0.01)
    year+=1
print(year)

Submission status: Accepted

Solution code:
X = int(input())
year = 0
money = 100
while True:
  if money >= X:
    break
  money = money + int(money*0.01)
  year +=1
print(year)

Submission status: Accepted

Solution code:
import math
yen = 100
x = int(input())
counter = 0

while (yen >= x) != True:
    counter += 1
    yen = math.floor(yen * 1.01)
    

print(counter)

Submission status: Accepted

Solution code:
x = int(input())

yokin = 100
ans = 0
while yokin < x:
    ans += 1
    yokin = int(yokin * 1.01)

print (ans)

Submission status: Accepted

Solution code:
from math import floor

X = int(input())

i = 0
d = 100
while (d < X):
    d += floor(d*0.01)
    i+= 1

print(i)

Submission status: Accepted

Solution code:
x = int(input())
year = 0
yen = 100

while x>yen:
  yen = int(yen*1.01)
  year+=1

print(year)

Submission status: Accepted

Solution code:
X=int(input())
a=100
b=0
while(X>a):
    a+=a//100
    b+=1
print(b)

Submission status: Accepted

Solution code:
X = int(input())
year = 1
money = 100
while True:
    money = int(money * 1.01)
    if money >= X:
        print(year)
        break
    year += 1

Submission status: Accepted

Solution code:
x = int(input())

s = 100
cnt = 0
while s < x:
  s=int(s*1.01)
  cnt+=1

print(cnt)

Submission status: Accepted

Solution code:
import math

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

while money < X:
    money = math.floor(money * 1.01)
    year = year + 1

print(year)

Submission status: Accepted

Solution code:
k=int(input())
a=100
b=0
while a<k:
	b+=1
	a+= a//100
print(b)

Submission status: Accepted

Solution code:
import math

X = int(input())

money = 100
year = 0
while True:
    money = math.floor(money * 1.01)
    year += 1
    if money >= X:
        break

print(year)

Submission status: Accepted

Solution code:
# ABC165B

x = int(input())
money = 100
n = 0
while True:
    n = n + 1
    money = int(money * 1.01)
    if money >= x:
        print(n)
        break

Submission status: Accepted

Solution code:
x=int(input())
money=100
year=0
while money<x:
  money=int(money*1.01)
  year+=1
print(year)

Submission status: Accepted

Solution code:
x = int(input())
sum = 100
n = 0

while sum < x:
    sum += sum // 100
    n += 1

print(n)

Submission status: Accepted

Solution code:
X = int(input())

money = 100
year = 0
while money < X:
  money = int(money * 1.01)
  year += 1
  
print(year)

Submission status: Accepted

Solution code:
X = int(input())
start = 100
i = 0
while True:
  i += 1
  start += start * 0.01
  start = int(start)
  if start >= X:
    print(i)
    break

Submission status: Accepted

Solution code:
import sys
import math

M = 100
X = int(input())
Y = 0

while True:
    M = M * 1.01
    M = math.floor(M)
    Y = Y + 1
#    print(Y)
    if X <= M:
        break

print(Y)

Submission status: Accepted

Solution code:
X = int(input())

# 預金
deposit = 100

count = 0
while deposit < X:
    deposit += deposit // 100
    count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input())
m = 100
ans = 0
while X > m:
    m += int(m*0.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
x = int(input())

n = 0

pri = 100

while pri < x:
  pri = int(pri*1.01)
  n += 1
  
print(n)

Submission status: Accepted

Solution code:
X = int(input())

year = 0

money = 100

while money < X:
  money = int(money * 1.01)
  year += 1
  
print(year)

Submission status: Accepted

Solution code:
import math

X = int(input())

M = 100
Y = 10**16

for i in range(Y):
  if X <= M:
    print(i)
    exit()
  M = math.floor(M * 1.01)

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

from math import floor

X = int(input())

total = 100
cnt = 0

while True:
    if total >= X:
        break

    cnt += 1
    total = floor(total*1.01)

print(cnt)

Submission status: Accepted

Solution code:
x=int(input())
money=100
for i in range(3761):
  money=int(money*1.01)
  if x<=money:
    print(i+1)
    break

Submission status: Accepted

Solution code:
x = int(input())
y = 1
n = 100
while(1):
    n=int(1.01*n)
    if n>=x:
        break
    y+=1
print(y)

Submission status: Accepted

Solution code:
X = int(input())

Y = 100
count = 0

while (X > Y):
  Y += int(0.01*Y)
  count += 1
print(count)

Submission status: Accepted

Solution code:
X = int(input())
ans = 0
money = 100
while money < X:
    money += money*0.01
    money //= 1
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
def main():
    X = int(input())
    yen = 100
    cnt = 0
    while yen < X:
        yen += int(yen * 0.01)
        cnt += 1
    print(cnt)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
x = int(input())
money = 100

for i in range(1, 10000000000000):
    money = int(money * 1.01)
    if money >= x:
        break
print(i)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
n=int(input())
z=100
i=0
while z<n:
  z=z*(1.01)
  z=z//1
  i+=1
  #print(z)
print(i)

Submission status: Accepted

Solution code:
X = int(input())

x = 100
a = 0
while x < X:
    x = int(x * 1.01)
    a += 1
print(a)

Submission status: Accepted

Solution code:
x=int(input())

a=int(100)
for i in range (3800)  :
    a=int(a*1.01)
    #a=round(a) roundは四捨五入、intは切り捨て
    if a < x:
        continue
    else:
        break

print(i+1)
#range関数によるリストは1番目が0

Submission status: Accepted

Solution code:
import math
X = int(input())
A = 100
i = 0
while X > A:
    A = math.floor(A * 1.01)
    i += 1
print(i)

Submission status: Accepted

Solution code:
X = int(input())
x = int(100)
for i in range(5000):
  x = int(x * 101 / 100)
  if x >= X:
    print(i + 1)
    break

Submission status: Accepted

Solution code:
x = int(input())

n = 100
for i in range(10000):
    if n >= x:
        break
    n = (n * 1.01) // 1
print(i)

Submission status: Accepted

Solution code:
import math
X = int(input())

yokin = 100.0


year = 1
while(True):
    
    yokin *= 1.01
    yokin = math.floor(yokin)
    #print(yokin)
    
    if yokin >= X:
        print(year)
        break
    
    year += 1

Submission status: Accepted

Solution code:
import math
X = int(input())
M = 100
Y = 0
while(M < X):
    M += math.floor(M/100)
    Y += 1

print(Y)

Submission status: Accepted

Solution code:
X = int(input())
x = 100
for i in range(1,10000):
    x = x + x//100
    if(x >= X):
        print(i)
        break

Submission status: Accepted

Solution code:
A = int(input())
s= 100
count = 0

while True:
  s = int(s*1.01)
  count += 1
  if s >= A:
    break
print(count)

Submission status: Accepted

Solution code:
x = int(input())
a = 100
count =0
while (1):
    if a>=x:
        print(count)
        break
    a += a//100
    count += 1

Submission status: Accepted

Solution code:
X = int(input())
m = 100
cnt = 0
while True:
    if m >= X:
        break
    cnt += 1
    m += int(m*0.01)
print(cnt)

Submission status: Accepted

Solution code:
X=int(input())
a=100

for i in range(1,10**18):
    a=int(a*1.01)
    if X<=a:
        print(i)
        exit()

Submission status: Accepted

Solution code:
X = int(input())
A = 100 
n = 0
while A < X:
    n += 1
    A += int(A *0.01)
else:
    print(n)

Submission status: Accepted

Solution code:
import math
x = int(input())
money = 100
for i in range(4000):
    money *= 1.01
    money = math.floor(money)
    if money >= x:
        print(i+1)
        break

Submission status: Accepted

Solution code:
a=int(input())
money=100
ans=0
while money<a:
  money=int(money*1.01)
  ans+=1
print(ans)

Submission status: Accepted

Solution code:
import math

x = int(input())
chokin = 100
ans = 0
while True:
    ans += 1
    rishi = math.floor(chokin / 100)
    chokin += rishi
    if chokin >= x:
        break

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

x = int(input())

y = 100
i = 0

while y < x:
    y = y + y // 100
    i = i + 1

print(i)

Submission status: Accepted

Solution code:
import math
x = int(input())
a = 100
s = 0

for i in range(10**111):
  a = a + math.floor(a*0.01)
  s += 1
  if a >= x:
    print(s)
    exit()

Submission status: Accepted

Solution code:
X = int(input())

a = 100
i = 0

while a < X:
    i += 1
    a *= 1.01
    a = int(a)

print(i)

Submission status: Accepted

Solution code:
import sys
import itertools

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


X = int(read())

x = 100

for year in itertools.count():
  if x >= X:
    break
  x = x * 101 // 100

print(year)

Submission status: Accepted

Solution code:
def main():
    X = int(input())
    x = divmod(X, 100)
    a = [1, 0]
    y = 0
    while a[0] < x[0] or a[0] == x[0] and a[1] < x[1]:
        i, a[1] = divmod(a[1] + a[0], 100)
        a[0] += i
        y += 1
    return y


print(main())

Submission status: Accepted

Solution code:
x = int(input())
money = 100
ans = 0

while True:
    money += int(money*0.01)
    ans += 1
    if  money >= x:
        break
print(ans)

Submission status: Accepted

Solution code:
x = int(input())
res = 100
for i in range(1,3801):
	res = int(res*1.01)
	if res >= x:
		print(i)
		break

Submission status: Accepted

Solution code:
x = int(input())

asset = 100
ans = 0

while asset < x:
    asset += int(asset*0.01)
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
import math

X = int(input())
money = 100
count = 0
while True:
    if money >= X:
        break
    else:
        money *= 1.01
        money = math.floor(money)
        count += 1
print(count)

Submission status: Accepted

Solution code:
X=int(input())
now=100
count=0
while(True):
  if now>=X:
    print(count)
    exit()
  now*=1.01
  now=int(now)
  count+=1

Submission status: Accepted

Solution code:
import math
def resolve():
	x = int(input())
	v = 100
	y = 0
	while True:
		y += 1
		v += math.floor(v*0.01)
		if v >= x:
			print(y)
			return
resolve()

Submission status: Accepted

Solution code:
import math
import time
from collections import defaultdict,deque
from sys import stdin,stdout
from bisect import bisect_left,bisect_right
x=int(input())
p=100
count=0
while(p<x):
    count+=1
    p+=p//100 
print(count)

Submission status: Accepted

Solution code:
N = int(input())
a = 100
ans = 0
while a < N:
    a = int(a * 1.01)
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())

balance = 100
years = 0

while balance < x:
    balance = int(balance * 1.01)
    years += 1

print(years)

Submission status: Accepted

Solution code:
n=int(input().rstrip())
now=100
ans = 0
while now<n:
  now+=int(now*0.01)
  ans+=1
print(ans)

Submission status: Accepted

Solution code:
import math
X = int(input())

total = 100
year = 0

while total < X:
  """
  if total < 1000:
    for i in range(1,100):
      num = 0
      if 100%i == 0:
        num = int(100/i)
      else:
        num = int(round(100/i+0.5,1))
      for j in range(num):
        total += i
        year += 1
        if total >= X:  break
      if total >= X:  break
  else:
    total += int(total*0.01)
    year += 1
    if total >= X:  break
  """
  total += int(total*0.01)
  year += 1
  if total >= X:  break
print(year)

Submission status: Accepted

Solution code:
X = int(input())

ans = 1
coin = 100
while(1):
    coin *= 1.01
    coin = int(coin)
    if coin >= X :
        break
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
import math
X=int(input())

charge=100
count=0

while(1):
    charge+=math.floor(charge*0.01)
    count+=1
    if charge>=X:
        break
print(count)

Submission status: Accepted

Solution code:
import math


def actual(x):
    amount = 100

    count = 0

    while True:
        amount *= 1.01
        amount = math.floor(amount)

        count += 1

        if amount >= x:
            return count

x = int(input())
print(actual(x))

Submission status: Accepted

Solution code:
X = int(input())
i = 100
count = 0
while X > i:
    i += int(i * 0.01)
    count += 1

print(count)

Submission status: Accepted

Solution code:
X = int(input())
Y = 100
count = 0
while int(Y) < X:
    Y = int(Y)
    Y *= 1.01
    count += 1
print(count)

Submission status: Accepted

Solution code:
from math import floor
x = int(input())
ans = 0
y = 100
while y < x:
    y = floor(y*1.01)
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
x = int(input())
count = 0
t = 100
while(True):
  count += 1
  t = int(t*1.01)
  if(t >= x):
    print(count)
    break

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Spyderエディタ

これは一時的なスクリプトファイルです
"""
p = 100
cnt = 0

x = int(input())
while p < x:
    p = int(p * 1.01)
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
x = int(input())

n = 100
y = 0
while n < x:
  n = int(n*1.01)
  y += 1
print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
import math
import fractions
import functools
x = int(input())

sum = 100
count = 0
while sum < x:
    sum = math.floor(sum * 1.01)
    count += 1
print(count)

Submission status: Accepted

Solution code:
X = int(input())
M = 100
n = 0

while X>M:
  M=(M*1.01)//1
  n+=1
  
print(n)

Submission status: Accepted

Solution code:
X = int(input())
a = 100
i = 0
while True:
  if a >= X:
    print(i)
    break
  else:
    a = int(a * 1.01)
    i += 1

Submission status: Accepted

Solution code:
x=int(input())
y=100
z=1
while True:
    if y*1.01//1<x:
        y=y*1.01//1
    else:
        print(z)
        break
    z+=1

Submission status: Accepted

Solution code:
X = int(input())
money = 100
yr = 0

while money < X:
    money += int(money*0.01)
    yr += 1

print(yr)

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

Solution code:
X = int(input())
B = 100
i = 0
while B < X:
    i += 1
    B = int(B*1.01)
print(i)

Submission status: Accepted

Solution code:
import math
x=int(input())
n=100
cnt=0
while not n>=x:
  n*=1.01
  n=math.floor(n)
  cnt+=1
  
  
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline

X = int(input())
x = 100

for i in range(1, 1000000):
	x = int(x * 1.01)
	if x >= X:
		print(i)
		break

Submission status: Accepted

Solution code:
def main(x):
    money = 100
    year = 0
    while money < x:
        year += 1
        money = int(money * 1.01)
    return year


if __name__ == '__main__':
    X = int(input())
    print(main(X))