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: Wrong Answer

Solution code:
def main():
    import sys
    read = sys.stdin.buffer.read
    readline = sys.stdin.buffer.readline
    readlines = sys.stdin.buffer.readlines
    sys.setrecursionlimit(10 ** 7)

    from math import floor

    x = int(readline())
    v = 100
    for i in range(1, 10 ** 6):
        v = floor(v * 1.01)
        if v >= x:
            print(i)
            break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 165 B

x = int(input())
d = 100
n = 0
inc = (1 / 100)

while d < x:
    d = d + int(inc * d)
    n += 1

print(n)

Submission status: Wrong Answer

Solution code:
# 165 B

x = int(input())
d = 100
n = 0
inc = (1 / 100)

while d <= x:
    d = d + int(inc * d)
    n += 1

print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
total = 100
while x >= total:
  if total < x:
    total = total * 1.01
print(total)

Submission status: Wrong Answer

Solution code:
x = int(input())
total = 100
while total >= x:
  if total < x:
    total = total * 1.01
print(total)

Submission status: Wrong Answer

Solution code:
x = int(input())
total = 100
while total >= x:
  if total < x:
    total = total * 1.01

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
num = 100

for i in range(10000):
  num += math.floor(num/100)
  if num >= x:
    print(i+1)
    exit(0)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
num = 100

for i in range(10000000):
  num = math.floor(num*1.01)
  if num >= x:
    print(i+1)
    exit(0)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
num = 100

for i in range(10000):
  num = math.floor(num*1.01)
  if num >= x:
    print(i+1)
    exit(0)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
num = 100

for i in range(10000):
  num = math.floor(num*1.01)
  if num >= x:
    print(i+1)

Submission status: Wrong Answer

Solution code:
import math

def main():
  x = int(input())
  
  total = 100
  year = 0
  
  while total < x:
    total = math.floor(total * 1.01)
    year += 1
  
  print(year)
  
  
  
main()

Submission status: Wrong Answer

Solution code:
import math

def main():
  x = int(input())
  
  total = 100
  
  for i in range(1, 10**18):
    total = math.floor(total * 1.01)
    if total >= x:
      print(i)
      return
  
main()

Submission status: Wrong Answer

Solution code:
import math

def main():
  x = int(input())
  
  total = 100
  
  for i in range(1, 10000000):
    total = math.floor(total * 1.01)
    if total >= x:
      print(i)
      return
  
main()

Submission status: Wrong Answer

Solution code:
import math
x = float(input())
print(math.ceil(math.log(x/100, 1.01)))

Submission status: Wrong Answer

Solution code:
import math
x = float(input())
print(math.log(x/100, 1.01))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

X = input()
X = int(X)
price = 100
year = 0
while price < X:
    year += 1
    price = math.floor(price * 1.01)
print(year)

Submission status: Wrong Answer

Solution code:
X = input()
X = int(X)
price = 100
year = 0
# while price < X:
#     year += 1
#     price = int(price * 1.01)
for i in range(1000000):
    year += 1
    price = int(price * 1.01)
    if price >= X:
        print(year)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
kane = 100
x = int(input())
year = 0
while kane < x:
    kane = int(kane * 1.01)  #100 * 1.01のyear乗
    year += 1
print(year)

Submission status: Wrong Answer

Solution code:
kane = 100
x = int(input())
year = 1
while kane < x:
    kane = int(kane * 1.01)  #100 * 1.01のyear乗
    print(kane)
    year += 1
print(year-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())

de=100
count=0
while de<x:
    count+=1
    de*=1.01
print(count)

Submission status: Wrong Answer

Solution code:
import numpy as np
def cumsum(x):
    return list(np.cumsum(x))

def cumsum_number(N,K,x):
    ans=[0]*(N-K+1)
    number_cumsum = cumsum(x)
    number_cumsum.insert(0,0)
    for i in range(N-K+1):
        ans[i]=number_cumsum[i+K]-number_cumsum[i]
    return ans
"""
int #整数
float #小数

#for
for name in fruits: #fruitの頭から操作
    print(name)

#リスト
list0 = [] #リスト生成
list0 = [1,2,3,4] #初期化
list0 = [0]*10 #[0,0,0,0,0,0,0,0,0,0]
list1= [i for i in range(10)] #>>> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list1 = list(map(int, input().split()))　# 複数の入力をリストに入れる
number=[int(input()) for i in range(int(input()))] #複数行の入力をリストに
list1 = list1 + [6, 7, 8] #リストの追加
list2.append(34) #リストの追加　最後に（）内が足される
list.insert(3,10) #リストの追加　任意の位置（追加したい位置,追加したい値）
len(list4) #リストの要素数
max(sa) #list saの最小値
list5.count(2) #リスト(文字列も可）内の2の数
list1.sort() #並び替え小さい順
list1.sort(reverse=True)  #並び替え大きい順
set(list1) #list1内の重複している要素を削除し、小さい順に並べる
sum([2,3,   ,3]) #リストの合計

abs(a) #aの絶対値
max(a,b) min(a,b) #最大値　最小値
text1 = text1.replace("34","test") #text1内の"34"を"test"に書き換える(文字列内の文字を入れ替える)

exit(0) #強制終了

cumsum(リスト) #累積和をリストで返す
cumsum_number(N,K,x) #N個の数が含まれるリストx内のK個からなる部分和をリストで返す
"""
X=int(input())
ans=0
Y=100
while True:
    YY=int(Y*1.01)
    if YY>=X:
        break
    else:
        Y = YY
        ans += 1
print(ans+1)

Submission status: Wrong Answer

Solution code:
X=int(input())
mlist=[100]
while mlist[-1]<X:
    m_n=int(mlist[-1]+mlist[-1]*0.01)
    mlist.append(m_n)
print(len(mlist)-1)

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    n = int(input())
    value = 100
    years = 0
    while value < n:
        value = (value*1.01)//1
        years += 1
    print(years)

Submission status: Wrong Answer

Solution code:
import sys
import itertools
# import numpy as np
import time
import math
 
sys.setrecursionlimit(10 ** 7)
 
from collections import defaultdict
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(input())

x = 100
year = 0
while x < N:
    x *= 1.01
    x = int(x)
    year += 1
print(year)

Submission status: Wrong Answer

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

print(b)

Submission status: Wrong Answer

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

print(b)

Submission status: Wrong Answer

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

print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
c = 100
count = 1
x = int(input())
while(True):
    c = math.floor(c*1.01)
    if x <= c:
        print(count)
        quit()
    count += 1

Submission status: Wrong Answer

Solution code:
c = 100
count = 1
x = int(input())
if x == 100:
    print(0)
    quit()
while(True):
    c = int(c*1.01)
    if x <= c:
        print(count)
        quit()
    count += 1

Submission status: Wrong Answer

Solution code:
c = 100
count = 1
x = int(input())
while(True):
    c = int(c*1.01)
    if x <= c:
        print(count)
        quit()
    count += 1

Submission status: Wrong Answer

Solution code:
c = 100
count = 1
x = int(input())
while(True):
    c *= 1.01
    if x <= c:
        print(count)
        quit()
    count += 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
now = 100
for i in range(10**7):
    now = math.floor(now*1.01)
    if now >= X:
        print(i+1)
        break

Submission status: Wrong Answer

Solution code:
N = int(input())
now = 100
for i in range(10**5):
  now *= 1.01
  if N <= now:
    print(i+1)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100

if x<=money:
    print("0")
    exit()

while x>money:
    count += 1
    money = money*1.01//1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100

while x>money:
    count += 1
    money = money*1.01//1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100

if x<=money:
    print("0")
    exit()

while x>=money:
    count += 1
    money = (money*1.01)//1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100

while x>=money:
    count += 1
    money = (money*1.01)//1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100

while x>=money:
    count += 1
    money = money*1.01//1

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())

count=0
money=100
while x>=money:
    count += count
    money = money*1.01//1

print(count)

Submission status: Wrong Answer

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

while X > money:
    year = year+1
    rishi = math.floor(money/100)
    money = money+rishi

print(year)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
coin = 100
count = 0

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

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
coin = 100
count = 0

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

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(1000000000000000):
  a = int(a*1.01)
  if a>=x:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
x = int(input())
a = 100
for i in range(100000000):
  a = int(a*1.01)
  if a>=x:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
money = 100
year = 0
while money < x:
    year += 1
    money += math.floor(money/100)

print(year)

Submission status: Wrong Answer

Solution code:
import math
x = int(input())
d = 100
c = 0
while d < x:
    d += math.floor(d * 0.01) #小数点以下切り捨て
    c += 1 #1年後
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
saving = 100
ans = 1

while saving < x:
    saving = math.floor(saving * 1.01)
    ans += 1

print(ans-1)

Submission status: Wrong Answer

Solution code:
import math
x=int(input())
money=100
count=0
while True:
  money *= 1.01
  money = int(money)
  count += 1
  if money >= x:
    print(count)
    exit()
  if money > 10**18:
    break

Submission status: Wrong Answer

Solution code:
import math

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

while saving < x:
    saving = math.floor(saving * 1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import math

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

while saving <= x:
    saving = math.floor(saving * 1.01)
    ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
yokin = 100

print(math.ceil(math.log( X/100 ) / math.log( 1.01 )) )

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
yokin = 100

print(math.ceil(math.log( X/100 ) / math.log( 1.01031 )) )

Submission status: Wrong Answer

Solution code:
x=int(input())
a=100
b=0

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

Submission status: Wrong Answer

Solution code:
x = int(input())
d = 100
c = 0
while d < x:
    d *= 1.01
    c += 1 #1年後
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

year = 1
balance = 100

while balance < x:
  balance = balance * (1+0.01)
  year += 1

print(year)

Submission status: Wrong Answer

Solution code:
import math
def fact(n):
    ans = 1
    for i in range(2, n+1):
        ans*= i
    return ans
def comb(n, c):
    return fact(n)//(fact(n-c)*c)

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

Submission status: Wrong Answer

Solution code:
import math
def main():
    deposit = 100
    X = int(input())
    year = 0
    
    while X >= deposit:
        deposit = int(deposit * 1.01)
        year +=1

    print(year)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math
def main():
    deposit = 100
    X = int(input())
    year = 0
    
    while X > deposit:
        deposit*=1.01
        year +=1

    print(year)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math 
X = int(input())
yen = 100
n = 0
while yen < X:
    n = n + 1
    yen = math.floor(yen*1.01*n)
    if X <= yen:
        print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())
w = 100
for i in range(1000000000000000000):
  w = w * 1.01
  if w >= X:
    print(i+1)
    break

Submission status: Wrong Answer

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

while i < x:
    i = i * 1.01
    c += 1

print(c)

Submission status: Wrong Answer

Solution code:


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

	money=100
	x=int(input())

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

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

if __name__=='__main__':
	main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=int(input())

a=100

for i in range(3800):
  if a>X:
    print(i)
    break
  else:
    a=(a*1.01)//1
  if a>10**6:
    a/(10**6)
    X/(10**6)

Submission status: Wrong Answer

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

print(y)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
print(math.ceil((math.log10(n) - 2 )/ math.log10(1.01)))

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
print(math.ceil(math.log10(n) - 2 / math.log10(1.01)))

Submission status: Wrong Answer

Solution code:
X = int(input())

i = 0

while True:
  if 100 * (1.01 ** i) >= X:
    print(i)
    break
  else:
    i += 1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())
deposit = 100

for i in range(x):
  deposit = int(deposit * 1.01)
  if x < deposit:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
X = int(input())

t = 100
# デフォルト0スタートでカウント
result = 0
# 終点があるからwhileで入力値に到達するまで回す
# tを1、resultを1ずつふやす
while t >= X:
    t += t // 100
    result += 1
print(result)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())

a = math.log10(101)
n = (x-2)//(a-2) + 1

print(n)

Submission status: Wrong Answer

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

while money < X:
    money = money * 1.01
    year += 1

print(year)

Submission status: Wrong Answer

Solution code:
X = int(input())

for i in range(3760):
    if int(100*1.01**i) >= X:
        print(i)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

year = 0
num = 100

while num < x:
  num = num * 1.01
  year += 1
  
print(year)

Submission status: Wrong Answer

Solution code:
i = 0
x = int(input())
y = 100
while x >= y:
  y = int(y * 101 /100)
  i += 1
print(i)

Submission status: Wrong Answer

Solution code:
import math

t=int(input())
t /= 100
t = math.log(t, 1.01)
if t%1==0:
    print(t)
else:
    print(int(t)+1)

Submission status: Wrong Answer

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

while d <= x:
  d += d//100
  i += 1
else:
  print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

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

Submission status: Wrong Answer

Solution code:
import math

X=int(input())
count=0
# count=float(count)
atcor=100
atcor=int(atcor)


while True:
    
    if atcor>X:
        print(count)
        break
    else:
        p=atcor/100
        atcor=atcor+p
        atcor=math.floor(atcor)
        count+=1

Submission status: Wrong Answer

Solution code:
x=float(input())
total=100
years=0
while total<x:
  total=(total*1.01)
  years+=1
print(years)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

money = 100
count = 0

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

print(count)

Submission status: Wrong Answer

Solution code:
X = int(input())

money = 100
count = 0

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

print(count)

Submission status: Wrong Answer

Solution code:
X = int(input())

year = 0
money = 100
i = 0

while i == 0:
    money += int(money * 0.01)
    print("{}".format(money))
    if money >= X:
        i = 1
    year += 1

print("{}".format(year))

Submission status: Wrong Answer

Solution code:
X = int(input())

year = 0
money = 100
i = 0

while i == 0:
    money += money * 0.01
    year += 1
    if money >= X:
        i = 1

print("{}".format(year))

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

Solution code:
X = int(input())
B = 100
while (B>X):
  B = B + B*0.01
print(int(B))

Submission status: Wrong Answer

Solution code:
x = int(input())
y = 100
for i in range(10**18):
  y = 100 + int(i)
  if y == x:
      print(i)
      break

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
total=100
cnt=0
while total < K:
  total += total/100
  cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
K = int(input())
total=100
cnt=0
while total < K:
  cnt+=1
  total += total/100
  cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
K = int(input())
total=100
cnt=0
while total < K:
  cnt+=1
  total += total/100
print(cnt)

Submission status: Wrong Answer

Solution code:
K = int(input())
total=100
cnt=0
while total < K:
  cnt+=1
  total = total + total*0.01
print(cnt)

Submission status: Wrong Answer

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

X=int(input())
i=0
while(i<X):
    d=int(i*1.01)
    i+=1
print(i)

Submission status: Wrong Answer

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: Wrong Answer

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

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

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

while deposit < x:
	year += 1
	deposit += deposit * 0.01
print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

Deposit = 100
ans = 0

while Deposit < X:
  Deposit *= 1.001
  ans += 1
  
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x=int(input())
print(int(math.log(x/100)/math.log(1.01))+1)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = int(input())

x_now = 100
h = 0
while True:
    h += 1
    x_now = x_now * 1.01
    if x_now >= x:
        print(h)
        exit(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

X=int(input())

rent=100
k=1

while k >= 1:
    if rent<X:
        rent=math.floor(100*(1+1/100)**k)    
        k+=1
        continue
    
    else:
        print(k-1)
        break

Submission status: Wrong Answer

Solution code:
X=int(input())

rent=100
k=1

while k >= 1:
    if rent<X:
        rent=100*(1+1/100)**k    
        k+=1
        continue
    
    else:
        print(k-1, rent)
        rent=100*(1+1/100)**k    
        k+=1
        break

Submission status: Wrong Answer

Solution code:
X=int(input())

rent=100
k=1

while k >= 1:
    if rent<X:
        rent=rent*(1+1/100)**k    
        k+=1
        continue
    
    else:
        print(k)    
        rent=rent*(1+1/100)**k    
        k+=1
        break

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

x = int(input())

y = 100
i = 0

while y < x:
    y = 1.01 * y
    i = i + 1

print(i)

Submission status: Wrong Answer

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

x = int(input())

y = 100
i = 0

while y < x:
    y = 1.01 * y
    i = i + 1

print(i)

Submission status: Wrong Answer

Solution code:
X = int(input())
x = divmod(X, 100)
a = [1, 0]
y = 0
while x[0] > a[0]:
  ya = 99-a[1] // a[0]
  a[1] += a[0]*ya
  y += ya
  a[1] += a[0]
  i, a[1] = divmod(a[1], 100)
  a[0] += i
  y += 1
while x[0] == a[0] and x[0] > a[0]:
  i, a[1] = divmod(a[1]+a[0], 100)
  a[0] += i
  y += 1
print(y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(yr)

Submission status: Wrong Answer

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

while m < x:
    y += 1
    m *= 1.01

print(y)

Submission status: Wrong Answer

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

while money > x:
    year += 1
    money *= 1.01
    
print(year)

Submission status: Wrong Answer

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

while money > x:
    year += 1
    money *= 1.01
    print(money)
    
print(year)

Submission status: Wrong Answer

Solution code:
money = int(input())
kane = 100
years = 1

while kane <= money:

    kane = kane * 1.01 
    kane = int(kane)
    if kane <= money:
        years = years + 1
print(years)

Submission status: Wrong Answer

Solution code:
money = int(input())
kane = 100
years = 0

while kane <= money:

    kane = kane * 1.01 
    int(kane)
    years = years + 1
print(years)

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

while kane <= money:

    kane = kane * 1.01 
    years = years + 1
print(years)

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
orig = 100
counter = 0

while orig <= x:
    orig = math.floor(orig * 1.01)
    counter += 1

print(counter)

Submission status: Wrong Answer

Solution code:
K =int(input())
B = 100
C = []
while (B<K):
    B = int(B*1.01)
    print(B)
    C.append(B)
c = len(C)

print(c)

Submission status: Wrong Answer

Solution code:
K =int(input())
B = 100
C = []
while (B<K):
    B = int(B*1.01)
    print(B)
    C.append(B)
c = len(C)
print(B)
print(c)

Submission status: Wrong Answer

Solution code:
#author : dokueki

import sys
from math import log
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007


def IOE():
    sys.stdin = open("input.txt", "r")
    sys.stdout = open("output.txt", "w")


def main():
    a = int(sys.stdin.readline())
    ans = log(a//100)/log(1.01)

    print(round(ans))


if __name__ == "__main__":
    try:
        IOE()
    except:
        pass
    main()