qyliang/CodeNanoFix huggingface dataset:
Buggy code:
N = int(input())
X = 100
count = 0
while True:
  if X >= N:
    print(count)
    break
    
  else:
    X = X + (X * 0.01)
    

Fixed code:
N = int(input())
X = 100
count = 0
while True:
  if X >= N:
    print(count)
    break
    
  else:
    X = int(X + (X * 0.01))
    count += 1
Buggy code:
X = int(input())

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

print(cnt)



Fixed code:
X = int(input())

tmp = 100
cnt = 0
while tmp < X:
    tmp = tmp + int(tmp*0.01)
    cnt += 1

print(cnt)
Buggy code:

import math
X= int(input())



money = 100
cnt = 0

while True:
    money = 1.01*money
    cnt += 1
    if int(money>=X):
        print(cnt)
        break

Fixed code:

import math
X= int(input())



money = 100
cnt = 0

while True:
    money = int(1.01*money)
    cnt += 1
    if money>=X:
        print(cnt)
        break
Buggy code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pysnooper # @pysnooper.snoop()
from pprint import pprint as pp
from pprint import pformat as pf

import math


if __name__ == '__main__':
    x = int(input())
    money = 100
    count = 0
    while not (money >= x):
        money = math.floor(money * 101 / 100)
        count += 1
    print(count)


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

from pprint import pprint as pp
from pprint import pformat as pf

import math


if __name__ == '__main__':
    x = int(input())
    money = 100
    count = 0
    while not (money >= x):
        money = math.floor(money * 101 / 100)
        count += 1
    print(count)
Buggy code:
num = input()
a = 100
count = 0
while count>=0:
  a = a * 1.1
  count = count + 1
  if a>=num:
    break
print(count)

Fixed code:
num = input()
a = 100
count = 0
while count>=0:
    a = int(a * 1.01)
    count = count + 1
    if a>=int(num):
        break
print(count)
Buggy code:
import math

x_target = int(input())

x = 100
n = 0

while x <= x_target:
  x = math.floor(x * 1.01)
  n += 1

print(n)

Fixed code:
import math

x_target = int(input())

x = 100
n = 0

while x < x_target:
  x = math.floor(x * 1.01)
  n += 1

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

print(y)

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

print(y)
Buggy code:
X = int(input())
f=0
c=0
y=100
if y<X:
  while f==0:
    c+=1
    yy=float(y)*1.01
    y=int(yy)
    if y>X:
      f=1
  print(c)
else:
  print(0)

Fixed code:
X = int(input())
f=0
c=0
y=100
if y<X:
  while f==0:
    c+=1
    y = int(float(y)*1.01)
    if y>=X:
      f=1
  print(c)
else:
  print(0)
Buggy code:
import math
X = int(input())
Y = 100
count = 0
while Y <= X:
    Y = Y + Y // 100
    count += 1

print(count)



Fixed code:
import math
X = int(input())
Y = 100
count = 0
while Y < X:
    Y = Y + Y // 100
    count += 1

print(count)
Buggy 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

Fixed 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
Buggy code:
#B
x = int(input())
m = 100
for i in range(10**18):
    m *= 1.01
    if m >= x:
        print(i+1)
        break

Fixed code:
#B
x = int(input())
m = 100
for i in range(10**18):
    m *= 1.01
    m = int(m)
    if m >= x:
        print(i+1)
        break
Buggy code:
    s=0
    temp=100
    while temp<x:
        s+=1
        temp=int(temp*1.01)
    print(s)


Fixed code:
x=int(input())
s=0
temp=100
while temp<x:
    s+=1
    temp=int(temp*1.01)
print(s)
Buggy code:
X = int(input())
m = 100
for n in range(5000):
  m = int(m*1.01)
  if m > X:
    print(n)
    break

Fixed code:
X = int(input())
m = 100
for n in range(5000):
  m = int(m*1.01)
  if m >= X:
    print(n+1)
    break
Buggy code:
import math

X = int(input())

t = 0
m = 100

while m < X:
  m = math.ceil(m * 1.01)
  t += 1

print(t)

Fixed code:
import math

X = int(input())

t = 0
m = 100

while m < X:
  m = math.floor(m * 1.01)
  t += 1

print(t)
Buggy code:
money = 100
x = int(input())
count = 0

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

Fixed code:
money = 100
x = int(input())
count = 0

while money < x:
    money *= 1.01
    money = money // 1
    count +=1
print(count)
Buggy code:
x=int(input())
num=0
y=100
while y<=x:
    y+=y//100
    if y>x:
        break
    num+=1
print(num)


Fixed code:
x=int(input())
num=0
y=100
while y<=x:
    y+=y//100
    num+=1
    if y>=x:
        print(num)
        break
Buggy code:
from decimal import *
x=int(input())
c=0
m=100
while m<x:
  m=Decimal(str(m))*Decimal('1.01')
  c+=1
  
print(c)

Fixed code:
from decimal import *
x=int(input())
c=0
m=100
while m<x:
  m=Decimal(str(m))*Decimal('1.01')
  m=int(m)
  c+=1
  
print(c)
Buggy code:
import math

X = int(input())

cur = 100
i = 0
while cur < X:
  cur = math.ceil(cur * 1.01)
  i += 1

print(i)

Fixed code:
import math

X = int(input())

cur = 100
i = 0

while cur < X:
  cur = math.floor(cur * 1.01)
  i += 1
  
print(i)
Buggy code:
a = int(input())
b = 100
c = 0
while true:
  b += int(b / 100)
  c += 1
  if b >= a:
    print(c)
    exit()

Fixed code:
a = int(input())
b = 100
c = 0
while True:
  b += int(b / 100)
  c += 1
  if b >= a:
    print(c)
    exit()
Buggy code:
x,m=int(input()),100
for d in range(4000):m+=m//100
 if x<=m:print(d+1);exit()


Fixed code:
x,m=int(input()),100
for d in range(4000):
 m+=m//100
 if x<=m:print(d+1);exit()
Buggy 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

Fixed 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
Buggy code:
# -*- coding: utf-8 -*-
"""
Created on Sat May  2 19:45:18 2020

@author: harsh
"""

#%%
import math
x=int(input())
rate=100
i=1
while(True):
    if(rate>=x):
        print(i)
        break
    else:
        rate=rate*1.01
        i+=1
#print((math.log(x/100))/(math.log(1.01)))


Fixed code:
# -*- coding: utf-8 -*-
"""
Created on Sat May  2 19:45:18 2020

@author: harsh
"""

#%%
import math
x=int(input())
rate=100
i=1
while(True):
    if(rate>=x):
        print(i-1)
        break
    else:
        rate=int(rate*1.01)
        i+=1
#print((math.log(x/100))/(math.log(1.01)))
Buggy code:
import math

a = 100
n = 0
X = int(input())

while a <= X:
    n += 1
    a = math.floor(a * 1.01)

print(n)

Fixed code:
import math

a = 100
n = 0
X = int(input())

while a < X:
    n += 1
    a = math.floor(a * 1.01)

print(n)
Buggy code:
X = int(input())
A = 100
c = 0
while(A < X):
  A = A * 1.01
  c = c + 1
  
print(c)

Fixed code:
X = int(input())
A = 100
c = 0
while(A < X):
  A = int(A * 1.01)
  c = c + 1
  
print(c)
Buggy code:
X = int(input())

a = 100
r = 0.01
n = 0
while True:
    b = a*((1.01)**n)
    bint = int(b)
    if bint  >= X:
        break    
    n+=1
print(n)

Fixed code:
X = int(input())

a = 100
r = 0.01
n = 0


while True:
    b = a * 1.01
    c = int(b)
    if c  >= X:
        break
    n+=1
    a = c
print(n+1)
Buggy code:
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))

Fixed 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))
Buggy code:
x = int(input());
count = 0;
v = 100;
while(v <= x):
    r = v * 0.01;
    v += r;
    count += 1;

print(count);

Fixed code:
x = int(input());
count = 0;
v = 100;
while(v < x):
    r = int(v * 0.01);
    v += r;
    count += 1;

print(count);
Buggy code:
x = int(input())

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

print(count)

Fixed code:
x = int(input())

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

print(count)
Buggy code:
X = int(input())
yen = 100
i = 0

def rishi(yen):
	return int(yen * 1.01)

while 1:
	yen = rishi(yen)
	i += 1
	if X < yen:
		break

print(i)

Fixed code:
X = int(input())
yen = 100
i = 0

def rishi(yen):
	return int(yen * 1.01)

while 1:
	i += 1
	yen = rishi(yen)
	if X <= yen:
		break

print(i)
Buggy code:
X=int(input())
m=100
n=0
while True:
    if m<=X:
        n+=1
        m=int(m*1.01)
    else:
        print(n)
        exit()


Fixed code:
X=int(input())
m=100
n=0
while True:

    if m>=X:
        print(n)
        exit()
    else:
        n+=1
        m=int(m*1.01)
Buggy code:
x = int(input())
a = 100
ans = 0

while a < x:
  a *= 1.01
  ans += 1

print(ans)

Fixed code:
x = int(input())
a = 100
ans = 0
 
while a < x:
  a *= 1.01
  a = a // 1
  ans += 1
 
print(ans)
Buggy code:
import math
n=int(input())
yen=float(100)
count=0

while yen<n :
  math.floor(yen)
  yen=yen*1.01
  math.floor(yen)
  count+=1
print(count)

Fixed code:
import math
n=int(input())
yen=float(100)
count=0

while yen<n :
  yen=yen*1.01
  count+=1
  yen=math.floor(yen)
print(count)
Buggy code:
x = int(input())

sm = 100
count = 0

while sm >= x:
    count += 1
    sm += int(0.01*sm)

print(count)


Fixed code:
x = int(input())

sm = 100
count = 0

while 1:
    count += 1
    sm += int(0.01*sm)
    if sm >= x:
        break

print(count)
Buggy code:
goal = int(input())
deposit = 100
year = 0

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

print(year)


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

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

print(year)
Buggy code:
from math import *
x = int(input())
a = 100
b = 0
while a < x:
 a+=a/100
 b+=1
print(b)


Fixed code:
from math import *
x = int(input())
a = 100
b = 0
while a < x:
 a += a//100
 b+=1
print(b)
Buggy code:
# -*- coding: utf-8 -*-
X = int(input())
n = 1
m = 100
while m < X:
    n += 1
    m += m//100 

print(n)

Fixed code:
# -*- coding: utf-8 -*-
X = int(input())
n = 0
m = 100
while m < X:
    n += 1
    m += m//100 

print(n)
Buggy code:
x = int(input())
count = 0
a = 100
while x > a:
  a += a * (1/100)
  count += 1
print(count)

Fixed code:
x = int(input())
count = 0
a = 100
while x > a:
  a += int(a * (1/100))
  count += 1
print(count)
Buggy code:
import math
x = int(input())
cnt = 0
risi=0
yokin=100
while x >= yokin:
    cnt+=1
    yokin += math.floor(yokin * 0.01)
print(cnt)

Fixed code:
import math
x = int(input())
cnt = 0
risi=0
yokin=100
while x > yokin:
    cnt+=1
    yokin += math.floor(yokin * 0.01)
print(cnt)
Buggy code:
x=int(input())
s=100
i=0
while s<x:
  s+=s//10
  i+=1
print(i)

Fixed code:
x=int(input())
s=100
i=0
while s<x:
  s+=s//100
  i+=1
print(i)
Buggy code:
x =int(input())
credit = 100
year = 0


for i in range(10**18):
 #credit = int(credit * 1.01)
  credit = credit // 100
  if(x <= credit):
    break
print(year)
  
      

Fixed code:
x =int(input())
credit = 100
year = 0


for i in range(10**18):
 #credit = int(credit * 1.01)
  year +=1
  credit += credit // 100
  if(x <= credit):
    break
print(year)
Buggy code:
import math

X = int(input())

x, y = 100, 0
while True:
    y += 1
    x += math.floor(x * 0.01)
    if x > X:
        break
print(y)

Fixed code:
import math

X = int(input())

x, y = 100, 0
while True:
    if x >= X:
        break
    x += math.floor(x * 0.01)
    y += 1
print(y)
Buggy code:
x = int(input())
y = 0
amt = 100
while amt < x:
    amt += (amt/100)
    y += 1

print(y)


Fixed code:
x = int(input())
y = 0
amt = 100
while amt < x:
    amt += (amt//100)
    y += 1

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

Fixed code:
a = int(input())
i = 0
t = 100
while 1:
    t = int(t * 1.01)
    i += 1
    if t >= a:
        break
print(i)
Buggy code:
x = int(input())
money = 100
count = 0
while money <= x:
    money = money * 1.01
    count += 1
print(count)

Fixed code:
x=int(input())
money=100
count=0
while money<x:
    money=money*1.01//1
    count+=1
print(count)
Buggy code:
import math
x = int(input())
money = 100
count = 0
while money <= x:
    money = math.floor(money * 1.01)
    count += 1
print(count)

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

print(count)
Buggy code:
x = int(input())
y = 100
ans = 0
while x >= y:
    y = int(y * 1.01)
    ans += 1
print(ans)

Fixed code:
x = int(input())
y = 100
ans = 0
while x > y:
    y = int(y * 1.01)
    ans += 1
print(ans)
Buggy code:
X = int(input())

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


Fixed code:
X = int(input())

count = 0
num = 100
while num < X:
    num = int(num * 1.01)
    count += 1
print(count)
Buggy code:
import math
x=int(input())
a=100
count=0
while math.floor(a)<x:
  a*=1.01
  count+=1
print(count)


Fixed code:
import math
x=int(input())
a=100
ans=0
while a<x:
  a=math.floor(a*1.01)
  ans+=1
print(ans)
Buggy code:
try:
	x=int(input())
	o=100
	count=0
	while int(o)!=x:
		o=o+(o*(1/100))
		print(o)
		count+=1
	print(count)
except:
	pass

Fixed code:
try:
	x=int(input())
	o=100
	count=0
	while o<x:
		o=int(o+(o*(1/100)))
		count+=1
	print(count)
except:
	pass
Buggy code:
X = int(input())
cnt = 0
yokin = 100
while (X >= yokin):
    yokin = int(yokin * 1.01)
    cnt += 1

print(cnt)


Fixed code:
X = int(input())
cnt = 0
yokin = 100
while (X > yokin):
    yokin = int(yokin * 1.01)
    cnt += 1

print(cnt)
Buggy code:
import math
x = int(input())
a = 100
answer = 0

while a <= x:
    a += math.floor(a * 0.01)
    answer += 1
print(answer)


Fixed code:
import math
x = int(input())
a = 100
answer = 0

while a < x:
    a += math.floor(a * 0.01)
    answer += 1
print(answer)
Buggy code:
X = int(input())
money = 100
year = 0
while X > money :
    money = 1.01*money
    year += 1
print(year)
    

Fixed code:
X = int(input())
money = 100
year = 0
while X > money :
    money = int(1.01*money)
    year += 1
print(year)
Buggy code:
X = int(input())
yen = 100
count = 0

while True:
  yen *= 1.01
  count += 1
  if yen >= X:
    print(count)
    break

Fixed code:
X = int(input())
yen = 100
count = 0

while True:
  yen *= 1.01
  yen = int(yen)
  count += 1
  if yen >= X:
    print(count)
    break
Buggy code:
from math import sqrt,ceil

# map(int,input().split())

n=int(input())

s=100
c=0
while(s<=n):
    p=s//100
    s=s+p
    c+=1
print(c)

Fixed code:
from math import sqrt,ceil

# map(int,input().split())

n=int(input())

s=100
c=0
while(s<n):
    p=s//100
    s=s+p
    c+=1
    # print(s)
print(c)
Buggy code:
X = int(input())
count = 0
money = 100

while Ture:
  money *= 1.01
  count += 1
  if money >= X:
    print(count)
    break


Fixed code:
X = int(input())
count = 0
money = int(100)

while True:
  money = int(money * 1.01)
  count += 1
  if money >= X:
    print(count)
    break
Buggy code:
import math

X = int(input())
Takahashi_money =100
num = 0

while Takahashi_money <= X:
    Takahashi_money = Takahashi_money * 1.01
    Takahashi_money = math.floor(Takahashi_money)
    num += 1

print(num)

Fixed code:
import math

X = int(input())
Takahashi_money =100
num = 0

while Takahashi_money < X:
    Takahashi_money = Takahashi_money * 1.01
    Takahashi_money = math.floor(Takahashi_money)
    num += 1

print(num)
Buggy code:
x = int(input())
d = 100
i = 0

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

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

while d < x:
  d += d//100
  i += 1
else:
  print(i)
Buggy code:
X=int(input())

ans=0
yokin=100
for i in range(1,X+1):
  yokin=int(yokin*1.01)
  if yokin <= X:
    ans+=1
  else:
    break
print(ans)

Fixed code:
X=int(input())

ans=0
yokin=100
for i in range(1,X+1):
  yokin=yokin+int(yokin*0.01)
  if yokin < X:
    ans+=1
  else:
    ans+=1
    break
print(ans)
Buggy code:
X = int(input())
year = 0
deposit = 101
while deposit < X:
    deposit += int(str(deposit)[0: -2])
    year += 1
print(year)

Fixed code:
X = int(input())
year = 0
deposit = 100
while deposit < X:
    deposit += int(str(deposit)[0: -2])
    year += 1
print(year)
Buggy code:
a=int(input())
t=100
sum=0
while(t<a):
	t=math.floor(t*101/100)
	sum=sum+1
print(sum)


Fixed code:
import math
a=int(input())
t=100
sum=0
while(t<a):
	t=math.floor(t*101/100)
	sum=sum+1
print(sum)
Buggy code:
def main():
  x = int(input())
  val = 100
  year=1
  while True:
    val = val * 1.01
    print(x,val)
    if x <= val:
      break
    year += 1

  print(year)

if __name__ == '__main__':
  main()


Fixed code:
def main():
  x = int(input())
  val = 100
  year=1
  while True:
    val = int(val * 1.01)
    if x <= val:
      break
    year += 1

  print(year)

if __name__ == '__main__':
  main()
Buggy code:
n = int(input())
b = 100
ans = 0
while  b<=n :
    b *= int(b*0.01)
    ans += 1
print(ans)

Fixed code:
n = int(input())
b = 100
ans = 0
while  b<n :
    b = int(b*1.01)
    ans += 1
print(ans)
Buggy code:
import math
goal = int(input())
cnt = 0
money = 100
while goal >= money:
    money = math.floor(money * 1.01)
    cnt +=1
print(cnt)

Fixed code:
import math
goal = int(input())
cnt = 0
money = 100
while goal > money:
    money = math.floor(money * 1.01)
    cnt +=1
print(cnt)
Buggy code:
x=int(input())

yo=100
n=0

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


Fixed code:
x=int(input())

yo=100
n=0

while x>yo:
    yo+=yo//100
    n+=1
print(n)
Buggy code:
money = 100
x = int(input())
#print(x)
cnt = 0
while money <= x:
  money += money * 0.01
  cnt += 1
  #print(cnt,money)
print(cnt)

Fixed code:
import math
money = 100
x = int(input())
#print(x)
cnt = 0
while money < x:
  money += money * 0.01
  money = int(money)
  cnt += 1
  #print(cnt,money)
print(cnt)
Buggy code:
import math
x = int(input())

m = 100
cnt = 0
while 1:
    cnt += 1
    m = math.floor(m * 1.01)
    if m > x:
        break
print(cnt)

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

m = 100
cnt = 0
while 1:
    cnt += 1
    m = m + math.floor(m * 0.01)
    if m >= x:
        break
print(cnt)
Buggy code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    X = int(input())

    cnt = 0
    result = 100
    while X >= result:
        result *= 1.01
        result = int(result)
        cnt += 1
    print(cnt)


if __name__ == "__main__":
    main()


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


def main():
    X = int(input())

    cnt = 0
    result = 100
    while X > result:
        result = int(result * 1.01)
        cnt += 1

    print(cnt)


if __name__ == "__main__":
    main()
Buggy code:
import math
K = input()
K = float(K)
X = 100.0
i = 0
while K >= X:
  X = X *1.01
  X = math.floor(X)
  i = i + 1

  
print(i)

Fixed code:
import math
K = input()
K = float(K)
X = 100.0
i = 0
while K > X:
  X = X *1.01
  X = math.floor(X)
  i = i + 1

  
print(i)
Buggy code:
import math

X=int(input())
# a=int(input())
#A,B=map(int,input().split(" "))
#a=[int(_) for _ in input().split(" ")]

i=0
t=100

while t <= X:
  t = math.floor(t * 1.01)
  i += 1

#print(a,b)
print(i)

Fixed code:
import math

X=int(input())
# a=int(input())
#A,B=map(int,input().split(" "))
#a=[int(_) for _ in input().split(" ")]

i=0
t=100

while t < X:
  t = math.floor(t * 1.01)
  i += 1

#print(a,b)
print(i)
Buggy code:
x = int(input())
now = 100
ans = 0
while(now <= x):
  #print(now)
  now = int(now*1.01)
  ans += 1
print(ans)

Fixed code:
x = int(input())
now = 100
ans = 0
while(now < x):
  #print(now)
  now = int(now*1.01)
  ans += 1
print(ans)
Buggy 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)



Fixed 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)
Buggy code:
x = int(input())

i = 0
a = 100
while a < x:
  a += a/100
  i += 1
print(i)


Fixed code:
x = int(input())

i = 0
a = 100
while a < x:
  a += a//100
  i += 1
print(i)
Buggy code:
a=int(input())
m=100
c=0
for i in range(2000):
  m=int(m*1.01)
  c=c+1
  if m >= a:
    break
print(c)

Fixed code:
a=int(input())
m=100
c=0
for i in range(4000):
  m=int(m*1.01)
  c=c+1
  if m >= a:
    break
print(c)
Buggy code:
X = int(input())

A = 100
cnt = 0

while A <= X:
    A = int(A * 1.01)
    cnt += 1

print(cnt)


Fixed code:
X = int(input())

A = 100
cnt = 0

while A < X:
    A = int(A * 1.01)
    cnt += 1

print(cnt)
Buggy code:
import math
X = int(input())
currency = 100
count = 0
while currency <= X:
    currency = math.floor(currency*1.01)
    count +=1
print(count)
    

Fixed code:
import math
X = int(input())
currency = 100
count = 0
while currency < X:
    currency = math.floor(currency*1.01)
    count +=1
print(count)
Buggy code:
X = int(input())
n = 100
i = 0
while n <= X:
    i += 1
    n = int(n * 1.01)
print(i)


Fixed code:
X = int(input())
n = 100
i = 0
while n < X:
    i += 1
    n = int(n * 1.01)
print(i)
Buggy code:
x=int(input())
a=100
for i in range(1, 10**18):
  b = (1.01)**i
  c = int(a * b)
  if x <= c:
    print(i)
    break

Fixed code:
x=int(input())
a=100
for i in range(1, 10**18):
  a *= 1.01
  a =int(a)
  if x <= a:
    print(i)
    break
Buggy code:
import math
X=int(input())
total=100
count=0
while X>=total:
    total = math.floor(total*1.01)
    count +=1
print(count)

Fixed code:
import math
X=int(input())
total=100
count=0
while X>total:
    total = math.floor(total*1.01)
    count +=1
print(math.ceil(count))
Buggy code:
import numpy as np

def main():
    x = int(input())
    money = 100
    ans = 0
    while x >= money:
        ans += 1
        money += money * 0.01
        money = np.floor(money)
    
    print(ans)

if __name__ == '__main__':
    main()


Fixed code:
import numpy as np

def main():
    x = int(input())
    money = 100
    ans = 0
    while x > money:
        money += money * 0.01
        ans += 1
        money = np.floor(money)
        #print(money)
        #print(ans)
    
    print(ans)

if __name__ == '__main__':
    main()
Buggy code:
X = input()
x = 100
for i in range(5000):
  x = x * 101 / 100
  if x >= X:
    print i + 1
    break

Fixed code:
X = int(input())
x = int(100)
for i in range(5000):
  x = int(x * 101 / 100)
  if x >= X:
    print(i + 1)
    break
Buggy code:
X = float(input().rstrip())
val = 100
count = 0
while True:
    val *= 1.01
    count += 1
    if val >= X:
        break
print(count)

Fixed code:
X = int(input().rstrip())
val = 100
count = 0
while True:
    val = int(1.01*val)
    count += 1
    if val >= X:
        break
print(count)
Buggy code:
X = int(input())

yen = 100
ret = 0
while yen<X:
  yen = 101*yen/100
  ret += 1
print(ret)

Fixed code:
X = int(input())

yen = 100
ret = 0
while yen<X:
  yen = 101*yen//100
  ret += 1
print(ret)
Buggy code:
import math

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


Fixed code:
import math

X = int(input())
i = 100
j = 0
while i < X:
    i = math.floor(i * 1.01)
    j += 1
print(j)
Buggy code:
X = int(input())
deposit = 100
year = 0
while (deopsit<X):
  deposit = deposit*101//100
  year += 1
print(year)

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

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

print(year)

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

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

print(year)
Buggy code:
x = int(input())

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

print(y)

Fixed code:
x = int(input())
 
y = 0
v = 100
while v < x:
  v = int(v * 1.01)
  y = y + 1
 
print(y)
Buggy code:
x=int(input())
de=100
count=0
while de<x:
    count+=1
    de//=100
print(count)

Fixed code:
x=int(input())
de=100
count=0
while de<x:
    count+=1
    de+=de//100
print(count)
Buggy code:
b1= float(input())
b2 = float(100)
for i in range (1,10^18):
    b2 =int( b2 * 1.01)
    if b2 <= b1 :
       continue
    else : break
print(i)


Fixed code:
b1= float(input())
b2 = float(100)
for i in range (1,10**18):
    b2 =int( b2 * 1.01)
    if b2 < b1 :
       continue
    else : break
print(i)