qyliang/CodeNanoFix huggingface dataset:
Buggy code:
N=int(input())
x=N//1.08
if int(x*1.08) == N:
  print(x)
elif int((x+1)*1.08) == N:
  print(x+1)
else:
  print(':(')

Fixed code:
N = int(input())
x = int(N/1.08)

if x*1.08//1==N:
  print(x)
elif (x+1)*1.08//1==N:
  print(x+1)
else:
  print(":(")
Buggy code:
import sys
from collections import deque
import numpy as np
import math
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def solve():
    f = math.ceil(m/1.08)
    if math.floor(f*1.08)==n:
        print(f)
    else:
        print(':(')
    return

if __name__=='__main__':
    n = I()
    solve()

Fixed code:
import sys
from collections import deque
import numpy as np
import math
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def solve():
    f = math.ceil(n/1.08)
    if math.floor(f*1.08)==n:
        print(f)
    else:
        print(':(')
    return

if __name__=='__main__':
    n = I()
    solve()
Buggy code:
import math
n=int(input())
ans=math.ceil(n/1.08)
print(ans*1.08)
if int(ans*1.08)==n:
    print(ans)
else:
    print(":(")

Fixed code:
import math
n=int(input())
ans=math.ceil(n/1.08)
if int(ans*1.08)==n:
    print(ans)
else:
    print(":(")
Buggy code:
n=int(input())
memo=[]
for i in range(1,n+1):
  memo.append(int(i*1.08))

if n in memo:
  print(memo.index(n)+1)
else:
  print("a")

Fixed code:
n=int(input())
memo=[]
for i in range(1,n+1):
  memo.append(int(i*1.08))

if n in memo:
  print(memo.index(n)+1)
else:
  print(":(")
Buggy code:
# sumitb2019_b.py
import math
N = int(input())
for i in range(N):
    if math.floor(i*1.08) == N:
#        print(i)
#        exit()
print(":(")

Fixed code:
# sumitb2019_b.py
import math 
N = int(input())
for i in range(50000):
    if math.floor(i*1.08) == N:
        print(i)
        exit()
print(":(")
Buggy code:
import decimal from Decimal 
N = int(input())
M = N/decimal(1.08)
if N == int(M*decimal(1.08)) :
    print( int(M))
else :
    print(:()

Fixed code:
from decimal import Decimal
N = int(input())
M = int(N/Decimal(1.08)) + 1
if N == int(M*Decimal(1.08)) :
    print( int(M))
else :
    print(':(')
Buggy code:
import sys
N=int(input())
a=N//1.08
c=a+1
d=a-1
b=a*1.08
b=int(b)
if b==N:
  print(a)
  sys.exit()
elif int(c*1.08)==N:
  print(c)
elif int(d*1.08)==N:
  print(d)

Fixed code:
import sys
N=int(input())
a=N//1.08
c=a+1
d=a-1
b=a*1.08
b=int(b)
if b==N:
  print(int(a))
  sys.exit()
elif int(c*1.08)==N:
  print(int(c))
elif int(d*1.08)==N:
  print(int(d))
else:
  print(":(")
Buggy code:
import math

N = int(input())
x = math.floor(N/1.08)

if x*1.08//1 == N:
  print(x)

else:
  print(":(")


Fixed code:
import math

N = int(input())
x = math.ceil(N/1.08)

if x*1.08//1 == N:
  print(x)

else:
  print(":(")
Buggy code:
import math

n = int(input())
x = math.ceil(n / 1.08)

result = math.floor(x * 1.08)
if (result == n):
    print(result)
else:
    print(":(")

Fixed code:
import math

n = int(input())
x = math.ceil(n / 1.08)

result = math.floor(x * 1.08)
if (result == n):
    print(x)
else:
    print(":(")
Buggy code:
def my_index(l, x, default=False):
    if x in l:
        return l.index(x)
    else:
        return default

ans = []

num = int(input())

for i in range(1,50001):
    ans.append(int(i*1.08))

print(my_index(ans,num-1,":("))

Fixed code:
def my_index(l, x, default=False):
    if x in l:
        return int(l.index(x))+1
    else:
        return default
 
ans = []
 
num = int(input())
 
for i in range(1,50001):
    ans.append(int(i*1.08))
 
print(my_index(ans,num,":("))
Buggy code:
n = int( input())
# m2, d2 = map(int, input().split())

x = n / 1.08
x_decimal = x - int(x)

ret = ':('
if x_decimal == 0.0:
    ret = str(int(x))
elif x_decimal > 1 / 1.08:
    ret = str(int(x + 1))
print(ret)

Fixed code:
n = int( input())
# m2, d2 = map(int, input().split())

x = n / 1.08
x_decimal = x - int(x)

ret = ':('
if x_decimal == 0.0:
    ret = str(int(x))
elif x_decimal > (8 / 108):
    ret = str(int(x + 1))
print(ret)
Buggy code:
N = int(input())

resultA = N * 100 // 108
resultB = resultA + 1
valueA = resultA * 108 // 100
valueB = resultB * 108 // 100

if N == valueA:
  print(resultA)
elif N == valueB:
  print(resultB)
else:
  print(result)
  print(value)
  print(':(')

Fixed code:
N = int(input())

resultA = N * 100 // 108
resultB = resultA + 1
valueA = resultA * 108 // 100
valueB = resultB * 108 // 100

if N == valueA:
  print(resultA)
elif N == valueB:
  print(resultB)
else:
  print(':(')
Buggy code:
N = int(input())
flag = 0
for i in range(1,54001):
    if math.floor(i*1.08) == N:
        print(i)
        flag += 1
        break
if flag == 0:
    print(":(")

Fixed code:
import math
N = int(input())
flag = 0
for i in range(1,54001):
    if math.floor(i*1.08) == N:
        print(i)
        flag += 1
        break
if flag == 0:
    print(":(")
Buggy code:
import math
x = int(input())
ans = math.ceil(x/1.08)
if x == (ans * 1.08):
    print(ans)
else:
    print(":(")

Fixed code:
import math
x = int(input())
ans = math.ceil(x/1.08)
if x == math.floor(ans * 1.08):
    print(ans)
else:
    print(":(")
Buggy code:
import math
N = int(input())
A = N/1.08 
B = (N+1)/1.08 

if math.ceil(A) < math.ceil(B):
  print(ceil(A))
else:
  print(':(')


Fixed code:
import math
N = int(input())
A = N/1.08 
B = (N+1)/1.08 

if math.ceil(N/1.08) < math.ceil((N+1)/1.08 ):
  print(math.ceil(N/1.08))
else:
  print(':(')
Buggy code:
n= int(input())
if int(-(-n//1.08)*1.08) == n:
    print(n//1.08)
else:
    print(":(")

Fixed code:
n= int(input())
if int(-(-n//1.08)*1.08) == n:
    print(int(-(-n//1.08)))
else:
    print(":(")
Buggy code:
import math
pay = int(input())
est_price = math.floor(pay/1.08)

#print(est_price)
if math.floor(est_price * 1.08) == pay:
  print(est_price)
else:
  print(":(")

Fixed code:
import math
pay = int(input())
est_price = math.ceil(pay/1.08)

#print(est_price)
if math.floor(est_price * 1.08) == pay:
  print(est_price)
else:
  print(":(")
Buggy code:
n = int(input())
f = int(n/1.08)
if (f+1)*1.08 != n:
  print(':(')
else:
  print(f)

Fixed code:
n = int(input())
f = int(n/1.08)
if int(f*1.08) != n and int((f+1)*1.08) != n:
  print(':(')
elif int(f*1.08) == n:
  print(f)
else:
  print(f+1)
Buggy code:
def beforeTax(n):
  li = int(n // 1.08)
  if int(li * 1.08) == n:
    print(li)
  if int((li + 1) * 1.08) == n:
    print(li + 1)
  print(':(')
 
if __name__ == "__main__":
  import sys
  in_str = ''
  for line in sys.stdin:
    in_str += line
  n = [int(_) for _ in in_str.split()]
  print(int(beforeTax(n)))

Fixed code:
def beforeTax(n):
  li = int(n // 1.08)
  if int(li * 1.08) == n:
    print(li)
  elif int((li + 1) * 1.08) == n:
    print(li + 1)
  else:
  	print(':(')
 
if __name__ == "__main__":
  import sys
  in_str = ''
  for line in sys.stdin:
    in_str += line
  n = [int(_) for _ in in_str.split()][0]
  beforeTax(n)
Buggy code:
# coding: utf-8
from math import floor, ceil
N = int(input())
tmp = floor(N / 1.08)
tmp2 = ceil(N / 1.08)
flag = False
if floor(tmp * 1.08) == N:
    print(tmp)
elif floor(tmp2 * 1.08):
    print(tmp2)
else:
    print(":(")

Fixed code:
# coding: utf-8
from math import floor, ceil
N = int(input())
tmp = floor(N / 1.08)
tmp2 = ceil(N / 1.08)
flag = False
if floor(tmp * 1.08) == N:
    print(tmp)
elif floor(tmp2 * 1.08) == N:
    print(tmp2)
else:
    print(":(")
Buggy code:
a=int(input())
b=1.08
d=int(a/b)
d=d-1
hoge=0
for i in range(4):
  if(int(d*c)==a and hoge==0)
    print(a)
    hoge=1
  d=d+1
if(hoge==0):
  print(":(")

Fixed code:
a=int(input())
b=1.08
d=int(a/b)
d=d-1
hoge=0
for i in range(4):
  if(int(d*b)==a and hoge==0):
    print(d)
    hoge=1
  d=d+1
if(hoge==0):
  print(":(")
Buggy code:
N = int(input())
zeinuki = math.floor(N / 1.08)
print(':('if N != math.floor(zeinuki * 1.08) else zeinuki)

Fixed code:
import math
N = int(input())
zeinuki = math.floor(N / 1.08)
if N != math.floor(zeinuki * 1.08):
  if N != math.floor((zeinuki + 1) * 1.08):
    print(':(')
  else:
    print(zeinuki + 1)
else:
  print(zeinuki)
Buggy code:
import math

n = int(input())

m = (n+1)//1.08
l = math.floor(m*1.08)

if m==l:
    print(m)
else:
    print(":(")


Fixed code:
import math

n = int(input())

m = math.floor((n+1)/1.08)
l = math.floor(m*1.08)

if n==l:
    print(m)
else:
    print(":(")
Buggy code:
n=int(input())
f=False
for i in range(1,5*10**4+1):
  if n==i*1.08//1
  	f=True
    
if f:
  print(i)
else:
  print(":(")

Fixed code:
n=int(input())
f=False
for i in range(1,5*10**4+1):
  if n==i*1.08//1:
    f=True
    break
if f:
  print(i)
else:
  print(":(")
Buggy code:
import math
N=int(input())
tmp=N//1.08
if math.floor(tmp*1.08)==N:
	print(tmp)
elif math.floor((tmp+1)*1.08)==N:
  print(tmp+1)
else:
  print(":(")

Fixed code:
import math
N=int(input())
tmp=N//1.08
if math.floor(tmp*1.08)==N:
	print(int(tmp))
elif math.floor((tmp+1)*1.08)==N:
  print(int(tmp+1))
else:
  print(":(")
Buggy code:
import math

N = int(input())
ans = int(int(math.ceil(N / 1.08)) * 1.08)
if N == ans:
    print(ans)
else:
    print(":(")

Fixed code:
import math

N = int(input())

ans = math.ceil(N/1.08)
if (math.floor(ans*1.08) == N):
    print(ans)
else:
    print(":(")
Buggy code:
# coding: utf-8
from decimal import Decimal, ROUND_DOWN, ROUND_UP


def solve(*args: str) -> str:
    n = Decimal(args[0])
    rate = Decimal(1.08)
    x_u = (n/rate).quantize(Decimal('0'), rounding=ROUND_UP)
    x_d = (n/rate).quantize(Decimal('0'), rounding=ROUND_DOWN)

    ret = ''
    print(x_u, x_d)
    if x_u == x_d:
        ret = str(x_u)
    elif (x_u*rate).quantize(Decimal('0'), rounding=ROUND_DOWN) == n:
        ret = str(x_u)
    elif (x_d*rate).quantize(Decimal('0'), rounding=ROUND_DOWN) == n:
        ret = str(x_d)
    else:
        ret = ':('

    return ret


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))


Fixed code:
# coding: utf-8
from decimal import Decimal, ROUND_DOWN, ROUND_UP


def solve(*args: str) -> str:
    n = Decimal(args[0])
    rate = Decimal(1.08)
    x_u = (n/rate).quantize(Decimal('0'), rounding=ROUND_UP)
    x_d = (n/rate).quantize(Decimal('0'), rounding=ROUND_DOWN)

    ret = ''
    if x_u == x_d:
        ret = str(x_u)
    elif (x_u*rate).quantize(Decimal('0'), rounding=ROUND_DOWN) == n:
        ret = str(x_u)
    elif (x_d*rate).quantize(Decimal('0'), rounding=ROUND_DOWN) == n:
        ret = str(x_d)
    else:
        ret = ':('

    return ret


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))
Buggy code:
N = int(input())

a = N/1.08
X = a*10//10

if(int(int(X)*1.08)==N):
  print(int(X))
elif(int((int(X)+1)*1.08)==N):
  print(int(X)+1)
elif(int((int(X)-1)*1.08)==N):
  print(int(X)-1)
else:
  print(":)")

Fixed code:
N = int(input())

a = N / 1.08

a = int(a)
if int(a*1.08) == N:
    print(a)
elif int((a+1)*1.08)==N:
    print(a+1)
elif int((a-1) * 1.08 ) == N:
    print(a-1)
else:
    print(':(')
Buggy code:
import math

n = int(input())

print(math.floor(math.floor(n/1.08)*1.08))
if math.floor(math.floor(n/1.08)*1.08) == n:
    print(math.floor(n/1.08))
elif math.floor((math.floor(n/1.08)+1) *1.08) == n:
    print(math.floor(n/1.08)+1)
else:
    print(':(')


Fixed code:
import math

n = int(input())

if math.floor(math.floor(n/1.08)*1.08) == n:
    print(math.floor(n/1.08))
elif math.floor((math.floor(n/1.08)+1) *1.08) == n:
    print(math.floor(n/1.08)+1)
else:
    print(':(')
Buggy code:

nums = {}

for w_tax in range(1, 50000+1):
    nums[w_tax] = ":("

for w_tax in range(1, 50000+1):
    wo_tax = int(w_tax * 100 / 108)
    nums[w_tax] = wo_tax

a = int(input()) 
out = nums[a]
print(out)

Fixed code:

nums = {}

for w_tax in range(1, 50000+1):
    nums[w_tax] = ":("

for wo_tax in range(1, 50000+1):
    w_tax = int(wo_tax * 1.08)
    nums[w_tax] = wo_tax

#for w_tax in range(1, 50000+1):
#    wo_tax = int(w_tax * 100 / 108)
#    nums[w_tax] = wo_tax

a = int(input()) 
out = nums[a]
print(out)
Buggy code:
import sys
input = sys.stdin.readline
def solve():
  n = int(input())
  tax = n-n/(1.08)
  price = n-tax//1
  if n == price*1.08//1:
    print(price//1)
  else:
    print(":(")
solve()

Fixed code:
import sys
input = sys.stdin.readline
def solve():
  n = int(input())
  tax = n-n/(1.08)
  price = n-tax//1
  if n == price*1.08//1:
    print(int(price))
  else:
    print(":(")
solve()
Buggy code:
N = int(input())
flag=False

for i in range(50000):
  if int(i*1.08) ==N:
    print(i)
    flag=True
    
if flag==False:
  print(":)")

Fixed code:
N = int(input())
flag=False

for i in range(50000):
  if int(i*1.08) ==N:
    print(i)
    flag=True
    break
    
if flag==False:
  print(":(")
Buggy code:
import math
n = int(input())
x = n/1.08
if math.floor(x)*1.08 == n: 
    print(math.floor(x))
else:
    print(":(")


Fixed code:
n=int(input())
import math
x=math.ceil(n/1.08)
if math.floor(1.08*x)==n:
    print(x)
else:
    print(':(')
Buggy code:
import math
def resolve():
    n=int(input())
    x=-(-n//1.08)
    
    if n==math.floor(x*1.08):
        print(x)
    else:
        print(':(')
resolve()

Fixed code:
import math
def resolve():
    n=int(input())
    x=math.ceil(n/1.08)
    if n==math.floor(x*1.08):
        print(x)
    else:
        print(':(')
resolve()
Buggy code:
import math
N=int(input())
X=N/1.08
X=math.ceil(X)
if X*1.08==N:
  print(X)
else:
  print(":(")

Fixed code:
import math
N=int(input())
X=N/1.08
X=math.ceil(X)
if math.floor(X*1.08)==N:
  print(X)
else:
  print(":(")
Buggy code:
n = int(input())

dic = {}
for i in range(1,50000):
    dic[int(i * 1.08)] = i
print(dic)

if n in dic:
    print(dic[n])
else:
    print(':(')

Fixed code:
n = int(input())

dic = {}
for i in range(1,50000):
    dic[int(i * 1.08)] = i

if n in dic:
    print(dic[n])
else:
    print(':(')
Buggy code:
X = int(input())

if X % 1.08 == 0:
    print(X//1.08)
else:
    if int((int(X//1.08)+1) * 1.08) == X:
        print(X//1.08+1)
    else:
        print(":(")

Fixed code:

X = int(input())

if X % 1.08 == 0:
    print(int(X//1.08))
else:
    if int((int(X//1.08)+1) * 1.08) == X:
        print(int(X//1.08+1))
    else:
        print(":(")
Buggy code:
N = int(input())

X = int(N / 1.08)

ans = -1
while X * 1.08 <= N:
    print(X)
    if int(X * 1.08) == N:
        ans = X
    X += 1
    
if ans > 0:
    print(ans)
else:
    print(":(")


Fixed code:
N = int(input())

X = int(N / 1.08)

ans = -1
while int(X * 1.08) <= N:
    if int(X * 1.08) == N:
        ans = X
    X += 1
    
if ans > 0:
    print(ans)
else:
    print(":(")
Buggy code:
import math

n = int(input())

ans = round(n * 100 / 108)
print(ans)

if n == math.floor(ans * 1.08):
  print(ans)
elif n == math.floor((ans-1) * 1.08):
  print(ans-1)
elif n == math.floor((ans+1) * 1.08):
  print(ans+1)
else:
  print(':(')

Fixed code:
import math

n = int(input())

ans = round(n * 100 / 108)
# print(ans)

if n == math.floor(ans * 1.08):
  print(ans)
elif n == math.floor((ans-1) * 1.08):
  print(ans-1)
elif n == math.floor((ans+1) * 1.08):
  print(ans+1)
else:
  print(':(')
Buggy code:
def II(): return int(input())
def MI(): return map(int,input().split())
def LMI(): return list(map(int,input().split()))
def LIIN(n): return list(int(input()) for _ in range(n))
def LMIN(n): return [list(map(int, input().split())) for _ in range(n)]
def IS(): return input()
def LS(): return list(input())
def MS(): return map(str,input().split())
def LMS(): return list(map(str,input().split()))
def LMS(): return list(map(str,input().split()))
def LISN(n): return list(input() for _ in range(n))
def LMSN(n): return [input().split() for _ in range(n)]
MOD = 10**9+7
INF = 10**18

def main():
    n = II()
    print(n*100//108)

if __name__ == '__main__':
    main()


Fixed code:
def II(): return int(input())
def MI(): return map(int,input().split())
def LMI(): return list(map(int,input().split()))
def LIIN(n): return list(int(input()) for _ in range(n))
def LMIN(n): return [list(map(int, input().split())) for _ in range(n)]
def IS(): return input()
def LS(): return list(input())
def MS(): return map(str,input().split())
def LMS(): return list(map(str,input().split()))
def LMS(): return list(map(str,input().split()))
def LISN(n): return list(input() for _ in range(n))
def LMSN(n): return [input().split() for _ in range(n)]
MOD = 10**9+7
INF = 10**18

def main():
    n = II()
    tmp = (n * 100 + 108 - 1) // 108
    if tmp * 108 //100 != n:
        print(':(')
    else:
        print(tmp)

if __name__ == '__main__':
    main()
Buggy code:
import math
N=int(input())
x=math.ceil(N/1.08)
if x == N:
  print(x)
else:
  print(":(")


Fixed code:
import math
N=int(input())
x=math.ceil(N/1.08)
if math.floor(x*1.08) == N:
  print(x)
else:
  print(":(")
Buggy code:
import math
N = int(input())
for i in N+1
    if math.floor(i*1.08) = N
    print(i)
    exit()
    
print(":(")
    

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

for i in range(N+1):
    if math.floor(1.08 * i) == N:
        print(i)
        exit()

print(":(")
Buggy code:
import math

N = int(input())

X = float(N/1.08)

if N == math.floor(math.ceil(X)*1.08):
 print(X)

else:
 print(':(')


Fixed code:
import math

N = int(input())

X = float(N/1.08)
X2 = math.ceil(X)

if N == math.floor(math.ceil(X)*1.08):
 print(X2)

else:
 print(':(')
Buggy code:
N = int(input())
x = N//1.08
if int(x*1.08) == N:
  print(x)
elif int((x+1)*1.08) == N:
  print(x+1)
else:
  print(':(')

Fixed code:
N = int(input())
x = int(N//1.08)
if int(x*1.08) == N:
  print(x)
elif int((x+1)*1.08) == N:
  print(x+1)
else:
  print(':(')
Buggy code:
N = int(input())

est_X = int(N/1.08)*1.08

if est_X == N:
    print(est_X)
elif est_X + 1 == N:
    print(est_X + 1)
else:
    print(':(')

Fixed code:
N = int(input())

est_X = int(N/1.08)

if int(est_X*1.08) == N:
    print(est_X)
elif int((est_X + 1)*1.08) == N:
    print(est_X + 1)
else:
    print(':(')
Buggy code:
n=int(input())
for i in range(n):
  if int(1.08*i)==n:
    print(i)
    break
print(':(')

Fixed code:
n = int(input())

for i in range(n + 1) :
	if int(i * 1.08) == n:
		print(i)
		break
else:
	print(":(")
Buggy code:
n = int(input())

for i in range(n):
	if int(i * 1.08) == n:
		print(int(i))
		exit()
	else:
		print(":(")

Fixed code:
n=int(input())
for i in range(n+1):
  if int(1.08*i)==n:
    print(i)
    exit()
print(':(')
Buggy code:
n=int(input())
if int(n/1.08)*1.08>=n:
  print(int(n/1.08))
else:
  print(':(')

Fixed code:
n=int(input())
if n+1>int((n+1)/1.08)*1.08>=n:
  print(int((n+1)/1.08))
else:
  print(':(')
Buggy code:
n = int(input())

for i in range(n + 1) :
	if int(i * 1.08) == n:
		print(i)
		break
	else:
		print(":(")

Fixed code:
n=int(input())
for i in range(50000):
    if int((i+1)*1.08)==n:
        print(i+1)
        break
else:
    print(":(")
Buggy code:
import math
n = int(input())
r = ":("
for i in range(50000):
    if math.floor(i*1.08) == n:
        print(i)
        exit()
    if math.floor(i*1.08) > n:
        break
print(-1)

Fixed code:
import math
n = int(input())
r = ":("
for i in range(50000):
    if math.floor(i*1.08) == n:
        print(i)
        exit()
    if math.floor(i*1.08) > n:
        break
print(r)
Buggy code:
usrInput = input()
taxRate = 0.08
finding = 1
whileIs = True
foundIs = False

while whileIs == True:
    if math.floor(finding * (taxRate + 1)) == int(usrInput):
        unTaxed = finding
        whileIs = False
        foundIs = True
    else:
       if 49300 <= finding:
           whileIs = False
           foundIs = False
        finding = finding + 1

if foundIs:
    print(str(unTaxed))
else:
    print(":(")

Fixed code:
usrInput = input()
import math
taxRate = 0.08
finding = 1
whileIs = True
foundIs = False

while whileIs == True:
    if math.floor(finding * (taxRate + 1)) == int(usrInput):
        unTaxed = finding
        whileIs = False
        foundIs = True
    else:
       if 49300 <= finding:
        whileIs = False
        foundIs = False
    finding = finding + 1

if foundIs:
    print(str(unTaxed))
else:
    print(":(")
Buggy code:
import math

N = int(input())

X = math.ceil(N / 1.08)
converted = int(X * 1.08)
if X == converted:
    print(X)
else:
    print(':(')

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

X = math.ceil(N/1.08)



if N == int(X*1.08):
    print(int(X))
else:
    #print(int(X))
    print(":(")
Buggy code:
taxed_price = int(input())
raw_price = taxed_price // 1.08

if int(raw_price * 1.08) == taxed_price:
  print(raw_price)
 elif int((raw_price + 1) * 1.08) == taxed_price:
  print(raw_price + 1)
 else:
  print(':\(')


Fixed code:
taxed_price = int(input())
raw_price = taxed_price // 1.08

if int(raw_price * 1.08) == taxed_price:
    print(int(raw_price))
elif int((raw_price + 1) * 1.08) == taxed_price:
    print(int(raw_price + 1))
else:
    print(':(')
Buggy code:
import math

N = int(input())

NN = math.floor(N / 1.08)

NNN = math.floor(NN*1.08)

print(NN, NNN)

if N == NNN:
    print(NN)
else:
    print(':(')

Fixed code:
import math

N = int(input())

NN = math.floor(N / 1.08)

NNN = math.floor(NN*1.08)

if N == NNN:
    print(NN)
else:
    if math.floor((NN+1)*1.08) == N:
        print(NN+1)
    else:
        print(':(')
Buggy code:
X = int(input())
flag = False
for i in range(X+1):
    if(int(i * 1.08) == X):
        flag = True

if flag:
    print(1)
else:
    print(":(")



Fixed code:
X = int(input())
flag = False
ans = 0
for i in range(X+1):
    if(int(i * 1.08) == X):
        ans = i
        flag = True

if flag:
    print(ans)
else:
    print(":(")
Buggy code:
n = int(input())
for i in range(n):
    tmp=i*1.08//1
    if tmp==n:
        print(tmp)
        exit(0)
print(":(")

Fixed code:
n = int(input())
for i in range(50000):
    tmp=i*1.08//1
    if tmp==n:
        print(i)
        exit(0)
print(":(")
Buggy code:
n = int(input())
m = int(n / 1.08)

if m * 1.08 == n:
    print(m)
elif (m + 1) * 1.08 == n:
    print(m + 1)
else:
    print(":(")

Fixed code:
n = int(input())
m = int(n / 1.08)

if int(m * 1.08) == n:
    print(m)
elif int((m + 1) * 1.08) == n:
    print(m + 1)
else:
    print(":(")
Buggy code:
N = int(input())
X = -(-N//1.08)
n = X*108//100
if(int(N)==int(n)):
  print(X)
else:
  print(':(')

Fixed code:
N = int(input())
X = -(-N//1.08)
n = X*108//100
if(int(N)==int(n)):
  print(int(X))
else:
  print(':(')
Buggy code:
import math
price = int(input())
tax = 8
price_1 = math.ceil(price / (1 + tax / 100))
price_2 = math.floor(price * tax / 100)
print(price_1 if price == price_1 + price2 else ':(')

Fixed code:
import math
price = int(input())
tax = 8
price_1 = math.ceil(price / (1 + tax / 100))
price_2 = math.floor(price_1 * tax / 100)
print(price_1 if price == price_1 + price_2 else ':(')
Buggy code:
import math
N = int(input())

f = N // 1.1

ok = False
while True:
  n = math.ceil(f * 1.08)
  if n == N:
    ok = True
    break
  elif N < n:
    break
    
  f += 1
  
if not ok:
  print(':(')
else:
  print(n)
  

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

f = int(N // 1.1)

ok = False
while True:
  n = math.floor(f * 1.08)
  if n == N:
    ok = True
    break
  elif N < n:
    break
    
  f += 1
  
if not ok:
  print(':(')
else:
  print(f)
Buggy code:
import math

n = int(input())
ans = ':('
a = n / 1.08

for i in range(math.floor(a - 2) , math.ceil(a + 2)):
  if math.floor(i * 1.08) == n:
    ans = i
    print(i)
    break

Fixed code:
import math

n = int(input())
ans = ':('
a = n / 1.08

for i in range(math.floor(a - 2) , math.ceil(a + 2)):
  if math.floor(i * 1.08) == n:
    ans = i
    break

print(ans)
Buggy code:
from math import floor

N = int(input())
n = int(N / 1.08)

for i in range(-1, 2):
    answer = floor((n + i) * 1.08)
    if answer == N:
        print(answer)
        exit()
else:
    print(':(')

Fixed code:
from math import floor

N = int(input())
n = int(N / 1.08)

for i in range(-2, 2):
    if floor((n + i) * 1.08) == N:
        print(n + i)
        exit()
else:
    print(':(')
Buggy code:
import math

N = int(input())
X = int(N / 1.08)

for X in range(1, N+1):
  if(int(1.08*X) == N):
    print(X)
    exit(0)

print(":()")

print(X)



Fixed code:
import math

N = int(input())
X = int(N / 1.08)

for X in range(1, N+1):
  if(int(1.08*X) == N):
    print(X)
    exit(0)

print(":(")