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:
X = int(input())
i = 1
x = 100
while True:
    x += x / 100 
    x = int(x)
    if x >= X:
        print(i)
        exit()
    i += 1

Submission status: Wrong Answer

Solution code:
x=int(input())
#x=105
cb=100


i=0
while cb <= x:
    cb=cb*1.01
    i+=1
print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

money = 100

cnt = 0
while x > money:
    money = math.floor(money+money*0.01)
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
x = int(input())

money = 100

cnt = 0
while x > money:
    money = int(money+money*0.01)
    cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=int(input())

m=100
i=0
while 1:
    m += int(m*.01)
    i+=1
    if m>=x:
        break

print(i)

Submission status: Wrong Answer

Solution code:
x=int(input())

m=100
i=0
while 1:
    m = int(m*1.01)
    i+=1
    if m>=x:
        break

print(i)

Submission status: Wrong Answer

Solution code:
x=int(input())

yo=100
n=0

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

Submission status: Wrong Answer

Solution code:
x=int(input())

yo=100
n=0

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

Submission status: Wrong Answer

Solution code:
x=int(input())

yo=100
n=0

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

Submission status: Wrong Answer

Solution code:

x=int(input())

yo=100
n=0

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

Submission status: Wrong Answer

Solution code:
X = int(input())
G = 100
after_year = 0

while X > G:
    G += G // 100
    print(G)
    after_year += 1

print(after_year)

Submission status: Wrong Answer

Solution code:
X = int(input())
G = 100
after_year = 0

while X > G:
    G = int(G * 1.01)
    after_year += 1

print(after_year)

Submission status: Wrong Answer

Solution code:
X = int(input())
G = 100
after_year = 0

while X >= G:
    G = int(G * 1.01)
    after_year += 1

print(after_year)

Submission status: Wrong Answer

Solution code:
def N():
    return int(input())
def L():
    return list(map(int,input().split()))
def NL(n):
    return [list(map(int,input().split())) for i in range(n)]
mod = pow(10,9)+7
#import numpy
y = 100
x = N()
cnt = 0
while(1):
    cnt += 1
    y = int(y*1.01)
    #print(y)
    if y >= x:
        print(cnt)
        break

Submission status: Wrong Answer

Solution code:
x=int(input())
mo=100
i=0
while True:
    i+=1
    mo=int(mo+(int(mo*0.01)))
    if mo>=x:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
import sys
x=int(input())
sys.setrecursionlimit(10**7)
mo=100
i=0
while True:
    i+=1
    mo=int(mo+(int(mo*0.01)))
    if mo>=x:
        print(i)
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1, 10**18):
    y = int(y*1.01)
    if y > x:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
X = int(input())

count = 0
n = 100
while n < X:
    n *= 1.01
    n = int(n)
    count += 1
else:
    print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
X = int(input())
year = math.log((X / 100),1.01)
print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


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

Submission status: Wrong Answer

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

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


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

Submission status: Wrong Answer

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

X = int(input())

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

print(year)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
ans = 0
money = 100 #初期金額

while money < X:
    money += math.floor(money*0.01)
    ans += 1
    
print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())

deposit = 100
y_later = 0

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

print(y_later)

Submission status: Wrong Answer

Solution code:
X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    #deposit = int(deposit * 1.01)
    deposit = deposit + (deposit // 100)
    print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:
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 = Decimal(int(saving) * b)
        if saving >= n:
            break
    return years


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

Submission status: Wrong Answer

Solution code:
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())))

Submission status: Wrong Answer

Solution code:
import math

x = int(input())

ans = 0
deposit = 100

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

print(ans)

Submission status: Wrong Answer

Solution code:
import math

x = float(input())

ans = 0
deposit = 100

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

print(ans)

Submission status: Wrong Answer

Solution code:
from math import floor
from fractions import Fraction
from decimal import Decimal


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

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


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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal


def com_interest(n: int) -> int:
    saving = 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())))

Submission status: Wrong Answer

Solution code:
from fractions import Fraction


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

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


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

Submission status: Wrong Answer

Solution code:
from math import floor
from fractions import Fraction


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

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


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

Submission status: Wrong Answer

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
import math
X = int(input())

ans = False
money = 100
year = 0
while money < X:
    money = int(math.floor(money * 1.01))
    year += 1

print(year)

Submission status: Wrong Answer

Solution code:
from math import floor
from fractions import Fraction

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

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


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

Submission status: Wrong Answer

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
import math
X = int(input())

ans = False
money = 100
year = 0
while money < X:
    money = int(math.floor(money * 1.01))
    year += 1

print(money)
print(year)

Submission status: Wrong Answer

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
import math
X = int(input())

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

print(year)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
import math
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        cash=math.floor(cash*1.01)
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        cash=int(cash*1.01)
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

Solution code:
x = int(input())
money = 100
count = 0
while money <= x:
    money = (money * 101) // 100
    count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X = int(input())
ASSET = 100
cnt = 0

while ASSET < X:
  ASSET += int(ASSET * 0.01)
  cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
ASSET = 100
cnt = 0

while ASSET < X:
  ASSET += math.floor(ASSET * 0.01)
  cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
import math
 
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て # WA
        # cash = cash * 1.01 * 100 // 100 # 1%の利子をつけて100倍した後に100で割って整数部のみ取り出す # WA
        # cash += cash * 0.01 * 100 // 100 # 1%の利子を計算して100倍した後に100で割って整数部のみ取り出す # WA
        # cash += cash // 100 # 元本に100で割った整数部を足す # AC
        # cash += math.floor(cash * 0.01) # WA
        # cash += math.floor(cash / 100) # WA
        # cash += math.floor(cash // 100) # AC
        cash += int(math.floor(cash / 100))
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math
 
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て # WA
        # cash = cash * 1.01 * 100 // 100 # 1%の利子をつけて100倍した後に100で割って整数部のみ取り出す # WA
        cash += cash * 0.01 * 100 // 100 # 1%の利子を計算して100倍した後に100で割って整数部のみ取り出す # WA
        # cash += cash // 100 # 元本に100で割った整数部を足す # AC
        # cash += math.floor(cash * 0.01) # WA
        # cash += math.floor(cash / 100) # WA
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math
 
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て # WA
        cash = cash * 1.01 * 100 // 100 # 1%の利子をつけて100倍した後に100で割って整数部のみ取り出す
        # cash += cash // 100 # 元本に100で割った整数部を足す # AC
        # cash += math.floor(cash * 0.01) # WA
        # cash += math.floor(cash / 100) # WA
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math
 
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て # WA
        # cash += cash // 100 # 元本に100で割った整数部を足す # AC
        # cash += math.floor(cash * 0.01) # WA
        cash += math.floor(cash / 100)
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math

X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        # cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て
        # cash += cash // 100 # 元本に100で割った整数部を足す
        cash += math.floor(cash * 0.01)
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

    return years

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

Submission status: Wrong Answer

Solution code:
x = int(input())

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

# x円以上になるまでループを回す
while money < x:
    money *= 1.01
    money = int(money)
    year += 1

print(year)

Submission status: Wrong Answer

Solution code:
X = int(input())

n = 100
year_count = 0

while n < X:
    # n = int(n * 1.01)
    n *= 1.01
    n = int(n)
    year_count += 1

print(year_count)

Submission status: Wrong Answer

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

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

    return years

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

Submission status: Wrong Answer

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

    while savings < X:
        savings = savings * 1.01 * 100 // 100
        years += 1

    return years

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

Submission status: Wrong Answer

Solution code:
X = int(input())

n = 100
year_count = 0

while n < X:
    n = int(n * 1.01 + 0.00001)
    year_count += 1

print(year_count)

Submission status: Wrong Answer

Solution code:
X = int(input())

n = 100
year_count = 0

while n < X:
    n = int(n * 1.01)
    year_count += 1

print(year_count)

Submission status: Wrong Answer

Solution code:
X = int(input())


def ans165(X: int):
    cash = 100  # 当初の預金額
    count = 0
    while True:
        cash = int(cash * 1.01)  # 元本に１パーセントの利子をつけ小数点以下切り捨て
        count += 1  # 利子をつける回数だけcountを増やす
        if cash >= X:  # cashがXの値以上になったらループ終了
            break
    return count


print(ans165(X))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = int(input())

deposit = 100
y_later = 0

if 101 <= X <= 10**18:
    while deposit < X:
        y_later += 1
        deposit = int(deposit * 1.01)
        #print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:



def ans165(X: int):
    cash = 100  # 当初の預金額
    count = 0
    while True:
        cash = int(cash * 1.01)  # 元本に１パーセントの利子をつけ小数点以下切り捨て
        count += 1  # 利子をつける回数だけcountを増やす
        if cash >= X:  # cashがXの値以上になったらループ終了
            break
    return count

X = int(input())
print(ans165(X))

Submission status: Wrong Answer

Solution code:
X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit = int(deposit * 1.01)
    #print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit = math.floor(deposit * 1.01)
    #print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:
X=int(input())
def ans165(X:int):
    cash=100#当初の預金額
    count=0
    while True:
        cash=int(cash*1.01) #元本に１パーセントの利子をつけ小数点以下切り捨て
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit = math.floor(deposit) * 1.01

print(y_later)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit = math.floor(deposit) * 1.01
    print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:
import math

X = int(input())

deposit = 100
y_later = 0

while deposit < X:
    y_later += 1
    deposit = math.floor(deposit) * 1.01
    #deposit = deposit * 1.01
    print(deposit)

print(y_later)

Submission status: Wrong Answer

Solution code:
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        count += 1
        cash=int(cash*1.01)
        if cash>=X:
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        cash=int(cash*1.01)
        count += 1
        if cash>=X:
            break
    return count
print(ans165(X))

Submission status: Wrong Answer

Solution code:
X=int(input())

def ans165(X:int):
    cash=100
    count=0
    while True:
        if X>10**18:
            break
        cash=int(cash*1.01)
        count += 1
        if cash>=X:
            break
    return count

print(ans165(X))

Submission status: Wrong Answer

Solution code:
X=int(input())

def ans165(X:int):
    cash=100
    count=0
    while True:
        cash=int(cash*1.01)
        count += 1
        if cash>=X:
            break
    return count

print(ans165(X))

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
an = 100
for i in range(1,10000):
  an += math.floor(an*0.01)
  if(an>=x):
    print(i)
    break

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
an = 100
for i in range(1,10000000000000):
  an = math.floor(an*1.01)
  if(an>=x):
    print(i)
    break

Submission status: Wrong Answer

Solution code:
import math

x = int(input())
an = 100
for i in range(1,10000000000):
  an = math.floor(an*1.01)
  if(an>=x):
    print(i)
    break

Submission status: Wrong Answer

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    amt = 100
    x = int(readline())
    y = 0
    for i in range(10 ** 18):
        if amt >= x:
            print(i)
            exit()
        amt = int(amt * 1.01)
        y += 1


if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while (i/a)<1:
  if (i/a)<1/44244402551509015458965262875226819002368/100:
    i=int(i*44244402551509015458965262875226819002368/100)
    f=f+9000
  else:
    i=int(i*1.01)
    f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while (i/a)<1:
  if (i/a)<1/4424440255150901545896526287522681900236800:
    i=int(i*44244402551509015458965262875226819002368/100)
    f=f+9000
  else:
    i=int(i*1.01)
    f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while (i/a)<1:
  if (i/a)<1/44244402551509015458965262875226819002368:
    i=int(i*44244402551509015458965262875226819002368/100)
    f=f+9000
  else:
    i=int(i*1.01)
    f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
X=int(input())

c=100
C=0
while c<X:
  c=int(c*1.01)
  C+=1

print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>927325319179164458662335942967220636410183680:
  i=i*927325319179164458662335942967220636410183680/100
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>9273253191791644586623359429672206364101836800:
  i=i*9273253191791644586623359429672206364101836
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>927325319179164458662335942967220636410183680:
  i=927325319179164458662335942967220636410183680
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>927325319179164458662335942967220636410183680:
  i=i*9273253191791644586623359429672206364101836
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>927325319179164458662335942967220636410183680:
  i=i*927325319179164458662335942967220636410183680
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
if a>927325319179164458662335942967220636410183680:
  i=i*927325319179164458662335942967220636410183680
  f=f+10000
while i/a<1:  
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=int(i*10374754610258.215)
    f=f+3012
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=int(i*10374754610258.215)
    f=f+3012
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>3605334940814628:
    i=int(i*3605334940814628)
    f=f+3600
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=int(i*3605334940814628)
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=int(i*1004291331219645824)
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=int(i*1004291331219645824/100)
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*10042913312196458.24
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*1004291331219645824/100
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*10042913312196458
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
x=int(input())
k=100
a=1
for i in range(1,4000):
  k=k*(1.01)//1
  if k<x:
    a=a+1
print(a)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<=1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1004291331219645824
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<=1:
  i=int(i*1.01)
  f=f+1
  if a/i>10000000000000000:
    i=i*1004291331219645824
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*1004291331219645824
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>10000000000000000:
    i=i*1004291331219645824
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*1004291331219645824
    f=f+3761
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000000:
    i=i*1004291331219645824
    f=f+3759
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1004291331219645824
    f=f+3759
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1004291331219645824
    f=f+3761
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1004291331219645824
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>100000000000000000:
    i=i*100000000000000000
    f=f+376
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>10000000000000000:
    i=i*10000000000000000
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*10000000000000000
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1000000000000000000
    f=f+3760
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1000000000000000000
    f=f+3759
print(f)

Submission status: Wrong Answer

Solution code:
a=int(input())
i=100
f=0
while i/a<1:
  i=int(i*1.01)
  f=f+1
  if a/i>1000000000000000000:
    i=i*1000000000000000000
    f=f+3760
print(f)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 165 B
import math
X = int(input())
M = 100
y = 0
while M < X:
    M = math.floor(M*1.01)
    y += 1
print(y)

Submission status: Wrong Answer

Solution code:
# 165 B
X = int(input())
M = 100
y = 0
while M < X:
    M = int(M*1.01)
    y += 1
print(y)