ZhenlongDai/ACPR huggingface dataset:
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = int(a/1.08)
c = b + 1
d = int(b * 1.08)
e = int(c * 1.08)
if d == a:
  print(d)
elif e == a:
  print(e)
else:
  print(':(')

Failing test case input:
651

Expected output:
603


Actual output:
651


Fixed submission (verdict: Accepted):
a = int(input())
b = int(a/1.08)
c = b + 1
d = int(b * 1.08)
e = int(c * 1.08)
if d == a:
  print(b)
elif e == a:
  print(c)
else:
  print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

N = int(input())

NN = math.floor(N / 1.08)

NNN = math.floor(NN*1.08)

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

Failing test case input:
180

Expected output:
167


Actual output:
:(


Fixed submission (verdict: Accepted):
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(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
from math import ceil

input = sys.stdin.readline


def main():
    n = int(input())
    x = n / 1.08
    if n == round(ceil(x) * 1.08):
        print(int(x))
    else:
        print(":(")


if __name__ == "__main__":
    main()


Failing test case input:
686

Expected output:
636


Actual output:
:(


Fixed submission (verdict: Accepted):
import sys
from math import ceil, floor

input = sys.stdin.readline


def main():
    n = int(input())
    x = n / 1.08
    if n == floor(ceil(x) * 1.08):
        print(ceil(x))
    elif n == floor(floor(x) * 1.08):
        print(floor(x))
    else:
        print(":(")


if __name__ == "__main__":
    main()

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
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(':(')

Failing test case input:
164

Expected output:
152


Actual output:
152
152


Fixed submission (verdict: Accepted):
import math

n = int(input())

ans = round(n * 100 / 108)


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(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
amount = int(input())
before_tax = int(amount / 1.08)
after_tax = before_tax + 1
print(after_tax, before_tax)
if int(after_tax * 1.08) == amount:
  print(int(after_tax))
elif int(before_tax * 1.08) == amount: 
  print(int(before_tax))
else:
  print(":(")

Failing test case input:
432

Expected output:
400

Actual output:
401 400
400


Fixed submission (verdict: Accepted):
amount = int(input())
before_tax = int(amount / 1.08)
after_tax = before_tax + 1
if int(after_tax * 1.08) == amount:
  print(int(after_tax))
elif int(before_tax * 1.08) == amount: 
  print(int(before_tax))
else:
  print(":(")
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

import math
x = math.ceil(n/1.08)
if n == math.ceil(x*1.08):
	print(x)
else:
	print(':(')

Failing test case input:
651

Expected output:
603


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())

import math
x = math.ceil(n/1.08)
if n == math.floor(x*1.08):
	print(x)
else:
	print(':(')

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
N=float(input())
a=math.ceil(N/(1.08))
for i in range(a,int(N)):
    if math.floor(i*1.08)==N:
        print(a)
        break
    else:
        print(':(')

Failing test case input:
1079

Expected output:
:(

Actual output:
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(


Fixed submission (verdict: Accepted):
import math
N=int(input())
a=math.ceil(N/(1.08))
if math.floor(a*1.08)==N:
        print(a)
else:
        print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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)

Failing test case input:
685

Expected output:
635


Actual output:
634


Fixed submission (verdict: Accepted):

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





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

Problem: p02842
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import math
N=int(input())
X=N/1.08
X=math.ceil(X)
if X*1.08==N:
  print(X)
else:
  print(":(")

Failing test case input:
140

Expected output:
130


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N=int(input())
X=N/1.08
X=math.ceil(X)
if math.floor(X*1.08)==N:
  print(X)
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
for i in range(1,50001):
  if math.floor(i*1.08) == N:
    print(math.floor(i*1.08))
    exit()
else:
  print(":(")

Failing test case input:
439

Expected output:
407


Actual output:
439


Fixed submission (verdict: Accepted):
import math
N = int(input())
for i in range(1,50001):
  if math.floor(i*1.08) == N:
    print(i)
    exit()
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

n = int(input())
for i in range(n):
    ans = math.floor(i * 1.08)
    if ans == n:
        ans = i
        break
    else:
        ans == ":("
print(ans)

Failing test case input:
1079

Expected output:
:(

Actual output:
1164


Fixed submission (verdict: Accepted):
import math

n = int(input())
ans = 0
for i in range(n+1):
    if math.floor(i * 1.08) == n:
        ans = i
        break
if ans == 0:
    print(":(")
else:
    print(ans)
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N=int(input())
X=math.ceil(N/1.08)
if math.floor(X*1.08)==N:
    print(X)
else:
    print('：（')

Failing test case input:
1079

Expected output:
:(

Actual output:
：（


Fixed submission (verdict: Accepted):
import math
n = int(input())

x = n /1.08
price= math.ceil(x)

if math.floor(price*1.08) == n:
    print(price)
else:
    print(':(')

Problem: p02842
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
X = int(input())
ans = X
if int(ans*1.08) == X:
  print(ans)
elif int((ans+1)*1.08) == X:
  print(ans+1)
else:
  print(':(')

Failing test case input:
140

Expected output:
130


Actual output:
:(


Fixed submission (verdict: Accepted):
X = int(input())
ans = int(X/1.08)
if int(ans*1.08) == X:
  print(ans)
elif int((ans+1)*1.08) == X:
  print(ans+1)
else:
  print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
for i in range(1,101):
  tmp = int(i * 1.08)
  if(tmp == N):
    print(str(tmp))
    exit()
print(":(")

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
N = int(input())
for i in range(1,50001):
  tmp = int(i * 1.08)
  if(tmp == N):
    print(str(i))
    exit()
print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

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

Failing test case input:
452

Expected output:
419


Actual output:
:(


Fixed submission (verdict: Accepted):
import math

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

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

    for x in range(50001):
        if(int(x*1.08)==N):
            print(x)
            sys.exit()

main()

Failing test case input:
1079

Expected output:
:(

Actual output:

Fixed submission (verdict: Accepted):
import sys

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

    for x in range(50001):
        if(int(x*1.08)==N):
            print(x)
            sys.exit()

    print(":(")
main()

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

N = int(input())

result = math.ceil(N / 1.08)

if result*1.08 == N:
   print(math.ceil(result) )
else:
   print(":(")

Failing test case input:
442

Expected output:
410


Actual output:
:(


Fixed submission (verdict: Accepted):
import math

N = int(input())

result = math.ceil(N / 1.08)

if math.floor(result*1.08) == N:
   print(math.ceil(result) )
else:
   print(":(")
Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

r = n % 27
if r == 13 or r == 26:
    print(':)')
elif r ==0:
    x = int(100*n/108)
    print(x)
else:
    for i in range(1, 25):
        if 1.08*(i-1) < r <= 1.08*i:
            break
    x = int(100*(n - i)/108) + i
    print(x)

Failing test case input:
1079

Expected output:
:(

Actual output:
:)


Fixed submission (verdict: Accepted):
n = int(input())

r = n % 27
if r == 13 or r == 26:
    print(':(')
elif r ==0:
    x = int(100*n/108)
    print(x)
else:
    for i in range(1, 25):
        if 1.08*(i-1) < r <= 1.08*i:
            break
    x = int(100*(n - i)/108) + i
    print(x)

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = float(input())
y = N/1.08 
x = int(y) 
z = float(x) 
flag=y-z
if flag==0:
 print(x)
elif flag >= 0.5:
 print(x+1)
else:
 print(':(')


Failing test case input:
332

Expected output:
308


Actual output:
:(


Fixed submission (verdict: Accepted):
N = float(input())
y = N/1.08 
x = int(y) 
z = float(x) 
flag=y-z
p=1/1.08
if flag==0:
 print(x)
elif flag+p > 1:
 print(x+1)
else:
 print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

n = int(input())

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

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


Failing test case input:
432

Expected output:
400

Actual output:
:(


Fixed submission (verdict: Accepted):
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(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())

for i in range(N):
	if round(i*1.08)==N:
		print(i)
		exit()
print(":(")

Failing test case input:
452

Expected output:
419


Actual output:
:(


Fixed submission (verdict: Accepted):
import math

N=int(input())

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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(":(")

Failing test case input:
164

Expected output:
152


Actual output:
164.16000000000003
152


Fixed submission (verdict: Accepted):
import math
n=int(input())
ans=math.ceil(n/1.08)
if int(ans*1.08)==n:
    print(ans)
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

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

Failing test case input:
369

Expected output:
342


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())

for i in range(n+1):
    if int(i * 1.08) == n:
        print(i)
        exit()
print(":(")
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())
for i in range(50001):
  if math.floor(i*1.08) == N:
    print(math.floor(i*1.08))
    exit()
else:
  print(":(")

Failing test case input:
686

Expected output:
636


Actual output:
686


Fixed submission (verdict: Accepted):
import math
N = int(input())
for i in range(1,50001):
  if math.floor(i*1.08) == N:
    print(i)
    exit()
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def f():
    n = int(input())
    a = n/1.08
    if a == int(a):
        print(a)
        return
    x = int(a) + 1
    if x >= ((n+1)/1.08):
        print(':(')
    else:
        print(x)

f()

Failing test case input:
432

Expected output:
400

Actual output:
400.0


Fixed submission (verdict: Accepted):
def f():
    n = int(input())
    a = n/1.08
    if a == int(a):
        print(int(a))
        return
    x = int(a) + 1
    if x >= ((n+1)/1.08):
        print(':(')
    else:
        print(x)

f()

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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(':(')

Failing test case input:
685

Expected output:
635


Actual output:
685


Fixed submission (verdict: Accepted):
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(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())

if math.ceil(N / 1.08) != N:
  print(':(')
else:
  print(math.ceil(N / 1.08))

Failing test case input:
651

Expected output:
603


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N = int(input())

if math.floor(math.ceil(N / 1.08) * 1.08) == N:
  print(math.ceil(N / 1.08))
else:
  print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n = int(input())
ok = False
for i in range(n-1,0,-1):
    if math.ceil(i*1.08)==n:
        print(i)
        ok = True
        break
if ok==False:
    print(":(")


Failing test case input:
1079

Expected output:
:(

Actual output:
999


Fixed submission (verdict: Accepted):
import math
n = int(input())
ok = False
for i in range(n,0,-1):
    if math.floor(i*1.08)==n:
        print(i)
        ok = True
        break
if ok==False:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
1079

Expected output:
:(

Actual output:
-1


Fixed submission (verdict: Accepted):
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)
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

a = int(N / 1.08 + 0.5)
b = int(a * 1.08)

if b == N:
   print(a)
else:
   print(":(")

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
N = int(input())

a = int(N / 1.08 + 0.9)
b = int(a * 1.08)

if b == N:
   print(a)
else:
   print(":(")

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

n = int(input())

if int(math.ceil(n/1.08)*1.08) == n or int(math.floor(n/1.08)*1.08) == n:
    print(round(n/1.08))
else:
    print(":(")

Failing test case input:
685

Expected output:
635


Actual output:
634


Fixed submission (verdict: Accepted):
import math

n = int(input())

if int(math.ceil(n/1.08)*1.08) == n :
    print(math.ceil(n/1.08))
elif int(math.floor(n/1.08)*1.08) == n :
    print(math.floor(n/1.08))
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
n = int(input())
price = math.floor(n / 1.08 )
if price * 1.08 == n:
    print(price)

else:
    print(":(")

Failing test case input:
140

Expected output:
130


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
n = int(input())
for i in range(1,50001):
    if math.floor(i * 1.08) == n:
        print(i)
        break
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

a1 = int(input())

b1 = int(a1 / 108)
a2 = b1 * 108

if a1 == math.floor(a2):
 print(int(b1*100))

else:
 print(':(')

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
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(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from math import ceil,floor
n=int(input())
if int (floor(ceil(n/1.08)*1.08 ))==n:
    print (floor(n/1.08))
else:
    print (":(")


Failing test case input:
439

Expected output:
407


Actual output:
406


Fixed submission (verdict: Accepted):
from math import ceil,floor
n=int(input())
if int (floor(ceil(n/1.08)*1.08 ))==n:
    print (ceil(n/1.08))
else:
    print (":(")

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
num=round(n/1.08)
check=int(num*1.08)
if check==n:
    print(num)
else:
    print(':(')

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
n=int(input())
num=math.ceil(n/1.08)
check=int(num*1.08)
if check==n:
    print(num)
else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())

for i in range(50000):
 if int(i*1.08)== n:
  print(i)
  break
 else:
  print(':(')
  break

Failing test case input:
322

Expected output:
299


Actual output:
:(


Fixed submission (verdict: Accepted):
n=int(input())

for i in range(50000):
 if int(i*1.08)== n:
  print(i)
  exit()
  
print(':(')
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
f = int(n/1.08)
if int(f*1.08) != n and int((f+1)*1.08) != n:
  print(':(')
else:
  print(f)


Failing test case input:
311

Expected output:
288


Actual output:
287


Fixed submission (verdict: Accepted):
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)

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
zeibatu = int(n / 1.08)
zeikomi = int(zeibatu * 1.08)
if n == zeikomi:
    print(zeibatu)
else:
    print(":(")

Failing test case input:
332

Expected output:
308


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())
zeibatu = int((n + 1) / 1.08)
zeikomi = int(zeibatu * 1.08)
if n == zeikomi:
    print(zeibatu)
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
a=int(n/1.08)
if int(a*1.08)==n or int((a+1)*1.08)==n:
	print(int(n/1.08))
else:
	print(":(")


Failing test case input:
686

Expected output:
636


Actual output:
635


Fixed submission (verdict: Accepted):
n=int(input())
a=int(n/1.08)
if int(a*1.08)==n:
	print(int(n/1.08))
elif int((a+1)*1.08)==n:
	print(int((n+1)/1.08))
else:
	print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

a = int(n / 1.09)
b = int(n / 1.07)

flag = 0
for i in range(a, b):
    if int(1.08 * i) == n:
        print(i)
        flag = 1
        break
if flag == 0:
    print(':(')


Failing test case input:
140

Expected output:
130


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())

a = int(n / 1.09)
b = int(n / 1.07)

flag = 0
for i in range(a, b+2):
    if int(1.08 * i) == n:
        print(i)
        flag = 1
        break

if flag == 0:
    print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

for x in range(900000 + 1):
    if round(x * 1.08) == N:
        print(x)
        break
else:
    print(':(')

Failing test case input:
332

Expected output:
308


Actual output:
307


Fixed submission (verdict: Accepted):
N = int(input())
import math

for x in range(900000 + 1):
    if math.floor(x * 1.08) == N:
        print(x)
        break
else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
ans=0
for i in range(1,50000+1):
    z=i*1.08
    if n<=z<(n+1):
        ans=z
        break
if ans==0:
    print(":(")
else:
    print(ans)



Failing test case input:
685

Expected output:
635


Actual output:
685.8000000000001


Fixed submission (verdict: Accepted):
n=int(input())
ans=0
for i in range(1,50000+1):
    z=i*1.08
    if n<=z<(n+1):
        ans=i
        break
if ans==0:
    print(":(")
else:
    print(ans)
Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):

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

Failing test case input:
442

Expected output:
410


Actual output:
:(


Fixed submission (verdict: Accepted):

import math
N = int(input())
tmp = round(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(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

n1 = N / 1.08

if round(n1)*1.08 == N:
    print(round(n1))
elif round(n1 + 1)*1.08 == N:
    print(round(n1 + 1))
else:
    print(":(")


Failing test case input:
332

Expected output:
308


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N = int(input())

n1 = N / 1.08

if math.floor(math.floor(n1)*1.08) == N:
    print(math.floor(n1))
elif math.floor(math.floor(n1 + 1)*1.08) == N:
    print(math.floor(n1 + 1))
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : list(map(int, stdin.readline().split()))
sys.setrecursionlimit(10 ** 7)

def main():
    n = ni()

    x = round(n / 1.08)
    if int(x * 1.08) == n:
        print(x)
    else:
        print(":(")

if __name__ == '__main__':
  main()

Failing test case input:
686

Expected output:
636


Actual output:
:(


Fixed submission (verdict: Accepted):
import sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : list(map(int, stdin.readline().split()))
sys.setrecursionlimit(10 ** 7)

def main():
    n = ni()

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

if __name__ == '__main__':
  main()

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n = int(input())
x = n 

if x * 1.08 == n:
  print(x)
else:
  print(':(')



Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):

n = int(input())

x = int(-(-n 

if int(x * 1.08) == n:
  print(x)
else:
  print(':(')

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())

xmin = int(n/1.08)
xmax = int((n+1)/1.08)


if n%27 == 0:
  print(xmax)
elif (n+1)%27 == 0:
  print(xmin)
elif xmin == xmax:
  print(":(")
else:
  print(xmax)


Failing test case input:
1079

Expected output:
:(

Actual output:
999


Fixed submission (verdict: Accepted):
n = int(input())

xmin = int(n/1.08)
xmax = int((n+1)/1.08)


if n%27 == 0:
  print(xmax)
elif (n+1)%27 == 0:
  print(":(")
elif xmin == xmax:
  print(":(")
else:
  print(xmax)
Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
n=int(input())
x=int(n/1.08)
if(math.floor(1.08*x)==n):
    print(x)
else:
    print(":(")

Failing test case input:
685

Expected output:
635


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
n=int(input())
x=math.ceil(n/1.08)
if(math.floor(1.08*x)==n):
    ans=x
else:
    ans=str(":(")
print(ans)

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
import sys
readline = sys.stdin.readline


def main():
    n = int(readline().rstrip())

    for i in range(50001):
        k = math.floor(i * 1.08)
        if n == k:
            print(i)
            break


if __name__ == '__main__':
    main()


Failing test case input:
1079

Expected output:
:(

Actual output:

Fixed submission (verdict: Accepted):
import math
import sys
readline = sys.stdin.readline


def main():
    n = int(readline().rstrip())

    for i in range(50001):
        k = math.floor(i * 1.08)
        if n == k:
            print(i)
            return
    print(':(')


if __name__ == '__main__':
    main()

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
N=int(input())
x=math.ceil(N/1.08)
if x == N:
  print(x)
else:
  print(":(")


Failing test case input:
685

Expected output:
635


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N=int(input())
x=math.ceil(N/1.08)
if math.floor(x*1.08) == N:
  print(x)
else:
  print(":(")

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
TAX = 1.08
value = int(input())

row_cost = int(value / TAX)

flag = False
echo_cost = 0
if int(row_cost * TAX) == value:
    flag = True
    echo_cost = int(row_cost * TAX)
elif int((row_cost + 1) * TAX) == value:
    flag = True
    echo_cost = int((row_cost + 1) * TAX)

else :
    flag = False

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




Failing test case input:
452

Expected output:
419


Actual output:
452


Fixed submission (verdict: Accepted):
TAX = 1.08
value = int(input())

row_cost = int(value / TAX)

flag = False
echo_cost = 0
if int(row_cost * TAX) == value:
    flag = True
    echo_cost = int(row_cost )
elif int((row_cost + 1) * TAX) == value:
    flag = True
    echo_cost = int(row_cost + 1)

else :
    flag = False

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

n=int(input())

x_lst=[]
for i in range(1,50000):
    x_lst.append(math.floor(i*1.08))

if n in x_lst:
    print(round(n/1.08))
else:
    print(':(')


Failing test case input:
442

Expected output:
410


Actual output:
409


Fixed submission (verdict: Accepted):
import math

n=int(input())

n_lst=[]
x_lst=[]
for i in range(1,50000):
    n_lst.append(i)
    x_lst.append(math.floor(i*1.08))

if n in x_lst:
    print(n_lst[x_lst.index(n)])
else:
    print(':(')
Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = float(input())
raw = N / 1.08
check = round(raw) * 1.08
if (check - N) >= 0:
  print(round(raw))
else :
  print(":(")

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
import math

N = int(input())
raw = math.ceil(N / 1.08)
check = raw * 1.08

if int(check) == N:
  print(raw)
else :
  print(":(")

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
n=int(input())
x=n/1.08
xc=math.ceil(x)
nn=x*1.08
if math.floor(nn)==n:    
	print(xc)
else:
  print(":(")


Failing test case input:
1079

Expected output:
:(

Actual output:
1000


Fixed submission (verdict: Accepted):
import math
n=int(input())
xc=math.ceil(n/1.08)
nn=xc*1.08
if math.floor(nn)==n:    
	print(xc)
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
n = int(N/1.08)
if int(n * 1.08) < N and N < int((n+1) * 1.08):
    print(':(')
else:
    print(n+1)

Failing test case input:
432

Expected output:
400

Actual output:
401


Fixed submission (verdict: Accepted):
N = int(input())
n = int(N/1.08)
if (int(n * 1.08) < N and N < int((n+1) * 1.08)):
    print(':(')
else:
    print(int(N

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
a=int(n/1.08)
z=lambda x:int(x*1.08)
if z(a)==n:
  print(a)
if z(a+1)==n:
  print(a+1)
else:
  print(":(")

Failing test case input:
432

Expected output:
400

Actual output:
400
:(


Fixed submission (verdict: Accepted):
n=int(input())
a=int(n/1.08)
z=lambda x:int(x*1.08)
if z(a)==n:
  print(a)
elif z(a+1)==n:
  print(a+1)
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

p = round(N / 1.08) 
o = int(p * 1.08) 

if o == N:
    print(int(p))

Failing test case input:
332

Expected output:
308


Actual output:

Fixed submission (verdict: Accepted):
import math

N = int(input())

p = math.ceil(N / 1.08) 
o = int(p * 1.08) 

if o == N:
    print(int(p))
else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

n = float(input())

x1 = n/1.08
x2 = (n+1)/1.08
x3 = int(math.floor(x1))

if x3 < x2:
	print(x3)
else:
	print(0)

Failing test case input:
322

Expected output:
299


Actual output:
298


Fixed submission (verdict: Accepted):
import math

n = float(input())

x1 = n/1.08
x2 = (n+1)/1.08
x3 = int(math.ceil(x1))

if x3 < x2:
	print(x3)
else:
	print(":(")

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    n = int(input())

    for i in range(1,50000):
        if round(i * 1.08) == n:
            print(i)
            exit()

    print(':(')

if __name__ == '__main__':
    main()

Failing test case input:
685

Expected output:
635


Actual output:
634


Fixed submission (verdict: Accepted):
import math

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

    for i in range(1,50000):
        if math.floor(i * 1.08) == n:
            print(i)
            exit()

    print(':(')

if __name__ == '__main__':
    main()
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
s = int(s)

if s % 1.08 < 0.1:
  print(':(')
else:
  x = s 
  x = int(x)
  print(x)

Failing test case input:
439

Expected output:
407


Actual output:
439


Fixed submission (verdict: Accepted):
import math

s = int(input())

te = s % 1.08
if te < 0.1:
  print(':(')
else:
  x = s / 1.08
  print(math.ceil(x))

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = int(N / 1.1)
for i in range(a - 1, N):
    if N == int(i * 1.08):
        print(i)

Failing test case input:
1079

Expected output:
:(

Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
a = int(N / 10)
x = 0

for i in range(a,N + 1):
    if N == int(i * 1.08):
        print(i)
        x += 1

if x == 0:
    print(':(')

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline

N = int(input())

p=N/1.08
if(p==0):
	print(int(p))
else:
	if((int(p)+1*1.08)!=N):
		print(":(")
	else:
		print(int(p)+1)

Failing test case input:
221

Expected output:
205


Actual output:
:(


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

N = int(input())

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

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = -1
for i in range(int(b)-2,int(a)+2):
    if b <= i < a:
        ans = i
        break
if ans == -1:
    print(":(")
else:
    print(ans)

Failing test case input:
442

Expected output:
410


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = -1
for i in range(int(b)-2,int(a)+2):
    if n <= i*1.08 < n+1:
        ans = i
        break
if ans == -1:
    print(":(")
else:
    print(ans)

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())

X = int(a/1.08 + 0.99999999999999)

if int(X*1.08) == a: 
    print(X)
else:
    print(":(")

Failing test case input:
432

Expected output:
400

Actual output:
:(


Fixed submission (verdict: Accepted):
import math
a = int(input())

X = math.ceil(a/1.08)

if math.floor(X*1.08) == a: 
    print(X)
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
m=int(n/1.08)+1
if int(m*1.08)==n:
  print(m)
else:
  print(':(')
  

Failing test case input:
432

Expected output:
400

Actual output:
:(


Fixed submission (verdict: Accepted):
n=int(input())
import math
m=math.ceil(n/1.08)
if int(m*1.08)==n:
  print(m)
else:
  print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
X = round(N / 1.08, 0)
if int(X*1.08) == N:
    print(int(X))
else:
    print(':(')

Failing test case input:
685

Expected output:
635


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N = int(input())
X = math.ceil(N / 1.08)
if int(X*1.08) == N:
    print(X)
else:
    print(':(')
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math



def inp():
    return(int(input()))


n = inp()
res = round(n/1.08)
if math.floor(res*1.08) >= n:
    print(res)
else:
    
    print(":(")


Failing test case input:
322

Expected output:
299


Actual output:
:(


Fixed submission (verdict: Accepted):
import math



def inp():
    return(int(input()))


n = inp()
res = ":("
for i in range(1, n+1):
    temp = math.floor(i*1.08)
    if temp == n:
        res = i
print(res)

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

p = round(N / 1.08) 
o = int(p * 1.08) 

if o == N:
    print(int(p))
else:
    print(':(')

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
import math

N = int(input())

p = math.ceil(N / 1.08) 
o = int(p * 1.08) 

if o == N:
    print(int(p))
else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math

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

o_int = math.floor(o)


print(math.floor(o_int * 1.08))


if (math.floor(o_int * 1.08) == n):
    print(o_int)

else:
    print(":(")

Failing test case input:
439

Expected output:
407


Actual output:
438
:(


Fixed submission (verdict: Accepted):
import math


n = int(input())
o = n / 1.080

o_floor = math.floor(o)
o_ceil = math.ceil(o)

if math.floor(o_floor * 1.08) == n:
    print(o_floor)

elif math.floor(o_ceil * 1.08) == n:
    print(o_ceil)

else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

from decimal import Decimal

import sys

for i in range(60000):
    if Decimal(i) * Decimal('1.08') == n:
        print(i)
        sys.exit()

print(':(')

Failing test case input:
651

Expected output:
603


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())

from decimal import Decimal

def calc(n):
    for i in range(60000):
        if int(Decimal(i) * Decimal('1.08')) == n:
            return i
    return ':('

print(calc(n))

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

for i in range(1,50001):
  if int(i*1.08) == N:
    print(i)
  elif i == 50000:
    print(":(")

Failing test case input:
685

Expected output:
635


Actual output:
635
:(


Fixed submission (verdict: Accepted):
N = int(input())
flag = 0

for i in range(1,50001):
  if int(i*1.08) == N:
    print(i)
    flag = 1
  elif (flag == 0) and (i == 50000):
    print(":(")

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = -1
for i in range(int(b)-2,int(a)+2):
    if n <= i*1.08 < n+0.5:
        ans = i
        break
if ans == -1:
    print(":(")
else:
    print(ans)

Failing test case input:
332

Expected output:
308


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = -1
for i in range(int(b)-2,int(a)+2):
    if n <= i*1.08 < n+1:
        ans = i
        break
if ans == -1:
    print(":(")
else:
    print(ans)
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int( input())


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)

Failing test case input:
369

Expected output:
342


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int( input())


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)

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

N=432

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

N2 = X * 1.08
N2 = math.floor(N2)

if N2 == N:
    print(X)
else:
    print(':(')

Failing test case input:
164

Expected output:
152


Actual output:
400


Fixed submission (verdict: Accepted):
import math

N=int(input())

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

N2 = X * 1.08
N2 = math.floor(N2)

if N2 == N:
    print(X)
else:
    print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
for X in range(int(N/1.1), N):
    if int(X * 10.8) == N:
        print(X)
        exit()
print(":(")


Failing test case input:
452

Expected output:
419


Actual output:
:(


Fixed submission (verdict: Accepted):
N = int(input())
for X in [-int(-N/1.08), int((N+1)/1.08)]:
    if int(X * 1.08) == N:
        print(X)
        exit()
print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
import math
for i in range(n):
  if int(i * 1.08) == n:
    print(i)
    exit()
  elif math.ceil(i * 1.08) == n:
    print(i)
    exit()
   

  
print(':(')

Failing test case input:
1079

Expected output:
:(

Actual output:
999


Fixed submission (verdict: Accepted):
n = int(input())
import math
for i in range(50000):
  if math.floor(i*1.08) == n:
    print(i)
    exit()
   

  
print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
pay = int(input())
est_price = round(pay/1.08)


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

Failing test case input:
442

Expected output:
410


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
pay = int(input())
est_price = math.ceil(pay/1.08)


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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = int(n / 1.08)
if int(a * 1.08) == n:
  print(a)
else:
  print(":(")

Failing test case input:
416

Expected output:
386


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
n = int(input())
a = math.ceil(n / 1.08)
if int(a * 1.08) == n:
  print(int(a))
else:
  print(":(")
Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = 0
for i in range(int(b),int(a)+1):
    if b <= i < a:
        ans = i
        break
if ans == 0:
    print(":(")
else:
    print(ans)

Failing test case input:
452

Expected output:
419


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())
a = (n + 0.5) / 1.08
b = n / 1.08

ans = -1
for i in range(int(b)-2,int(a)+2):
    if n <= i*1.08 < n+1:
        ans = i
        break
if ans == -1:
    print(":(")
else:
    print(ans)

Problem: p02842
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):

import math
N = int(input())
tmp = round(N / 1.08)

if math.floor(tmp * 1.08) == N:
    print(int(tmp))
else:
    print(":(")

Failing test case input:
442

Expected output:
410


Actual output:
:(


Fixed submission (verdict: Accepted):

import math
N = int(input())
tmp = round(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(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import math
N = int(input())

ans = round(N / 1.08)


if N == math.floor(ans * 1.08):
    print(ans)
else:
    print(":(")

Failing test case input:
439

Expected output:
407


Actual output:
:(


Fixed submission (verdict: Accepted):

import math
N = int(input())

ans = int(N 

if N == int(ans * 1.08):
    print(ans)
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

import math
x = math.ceil(n/1.08)
if x == n*1.08:
    print(x)
else:
    print(':(')

Failing test case input:
322

Expected output:
299


Actual output:
:(


Fixed submission (verdict: Accepted):
n = int(input())

import math
x = math.ceil(n/1.08)
if n == math.floor(x*1.08):
	print(x)
else:
	print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
n=int(input())
for i in range(n):
    if (i*1.08==n):
        print (i)
        sys.exit() 
print(":(")


Failing test case input:
452

Expected output:
419


Actual output:
:(


Fixed submission (verdict: Accepted):
import sys
n=int(input())
for i in range(n+10):
    if (int(i*108/100)==n):
        print (i)
        sys.exit() 
print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n = int(input())

if(n%1.08>0 and n%1.08<0.1):
    print(":(")
else:
    print(math.floor(n/1.08))

Failing test case input:
141

Expected output:
131


Actual output:
130


Fixed submission (verdict: Accepted):
import math
n = int(input())

if(n%1.08>0 and n%1.08<0.1):
    print(":(")
else:
    print(math.ceil(n/1.08))
Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

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

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

Failing test case input:
328

Expected output:
304


Actual output:
328


Fixed submission (verdict: Accepted):
import math

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

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

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

Failing test case input:
311

Expected output:
288


Actual output:
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
:(
288


Fixed submission (verdict: Accepted):
n = int(input())

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())

for i in range(50001):
    if N == math.floor(i * 1.08):
        print(i)
else:
    print(":(")

Failing test case input:
686

Expected output:
636


Actual output:
636
:(


Fixed submission (verdict: Accepted):
import math
N = int(input())

for i in range(50001):
    if N == math.floor(i * 1.08):
        print(i)
        break
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
N=int(input())
x=math.floor(N/1.08)
X=math.floor((N+1)/1.08)
if x < X:
  print(X)
else:
  print(":(")

Failing test case input:
432

Expected output:
400

Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N=int(input())
x=math.ceil(N/1.08)
if math.floor(x*1.08) == N:
  print(x)
else:
  print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
x = round(n/1.08)
if int(x * 1.08) == n:
  print(x)
else:
  print(":(")

Failing test case input:
686

Expected output:
636


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
n = int(input())
x = math.ceil(n/1.08)
if int(x * 1.08) == n:
  print(x)
else:
  print(":(")
Problem: p02842
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
 
for X in range(N-1):
  if N+1 > X * 1.08 > N:
    print(X)
    break
  elif X * 1.08 > N+1:
    break
print(':(')

Failing test case input:
322

Expected output:
299


Actual output:
299
:(


Fixed submission (verdict: Accepted):
N = int(input())
 
ans = ":("
 
for X in range(N+1):
  if int(X * 1.08) == N:
    ans = X
    break
    
print(ans)

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if int(round(N / 1.08) * 1.08) == N: 
    print(int(N / 1.08))
else:
    print(':(')

Failing test case input:
164

Expected output:
152


Actual output:
151


Fixed submission (verdict: Accepted):
import math

N = int(input())

X = math.ceil(N / 1.08)

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

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


def input():
    return stdin.readline()[:-1]


def intput():
    return int(input())


def sinput():
    return input().split()


def intsput():
    return map(int, sinput())




n = intput()

x = round(n / 1.08)


for t in range(x - 2, x + 3):
    if round(t * 1.08) == n:
        print(t)
        break
else:
    print(":(")


Failing test case input:
416

Expected output:
386


Actual output:
385


Fixed submission (verdict: Accepted):
from sys import stdin


def input():
    return stdin.readline()[:-1]


def intput():
    return int(input())


def sinput():
    return input().split()


def intsput():
    return map(int, sinput())




n = intput()

x = round(n / 1.08)


for t in range(x - 1000, x + 1000):
    if int(t * 1.08) == n and t > 0:
        print(t)
        break
else:
    print(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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(":(")


Failing test case input:
332

Expected output:
308


Actual output:
307
:(


Fixed submission (verdict: Accepted):
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(":(")

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N = int(input())

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

Failing test case input:
332

Expected output:
308


Actual output:
:(


Fixed submission (verdict: Accepted):
import math
N = int(input())

if math.floor(math.ceil(N / 1.08) * 1.08) == N:
  print(math.ceil(N / 1.08))
else:
  print(':(')

Problem: p02842
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n = int(1078)
a = math.ceil(n/1.08)
b = math.floor(a*1.08)
print(a*(n == b) or ":(")

Failing test case input:
685

Expected output:
635


Actual output:
999


Fixed submission (verdict: Accepted):
import math
n = int(input())
a = math.ceil(n/1.08)
b = math.floor(a*1.08)
print(a*(n == b) or ":(")