Problem:


Score: 200 points

Problem Statement

Takahashi bought a piece of apple pie at ABC Confiserie. According to his memory, he paid N yen (the currency of Japan) for it.

The consumption tax rate for foods in this shop is 8 percent. That is, to buy an apple pie priced at X yen before tax, you have to pay X \times 1.08 yen (rounded down to the nearest integer).

Takahashi forgot the price of his apple pie before tax, X, and wants to know it again. Write a program that takes N as input and finds X. We assume X is an integer.

If there are multiple possible values for X, find any one of them. Also, Takahashi's memory of N, the amount he paid, may be incorrect. If no value could be X, report that fact.

Constraints

1 \leq N \leq 50000

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

If there are values that could be X, the price of the apple pie before tax, print any one of them.

If there are multiple such values, printing any one of them will be accepted.

If no value could be X, print :(.

Sample Input 1

432

Sample Output 1

400

If the apple pie is priced at 400 yen before tax, you have to pay 400 \times 1.08 = 432 yen to buy one.

Otherwise, the amount you have to pay will not be 432 yen.

Sample Input 2

1079

Sample Output 2

:(

There is no possible price before tax for which you have to pay 1079 yen with tax.

Sample Input 3

1001

Sample Output 3

927

If the apple pie is priced 927 yen before tax, by rounding down 927 \times 1.08 = 1001.16, you have to pay 1001 yen.



Sample input:
432


Sample output:
400

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=int(n/1.08),int((n+1)/1.08)
if float(n/1.08)-int(n/1.08)==0:
  print(a)
elif b-a==1:
  print(b)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n=int(input())
a,b=int(n/1.08),int((n+1)/1.08)
if b-a==1:
  print(b)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
# B - Tax Rate
def main():
    N = int(input())
    x = N / 1.08
    print(int(x) if x.is_integer() else ":(")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
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):
        if int(i*1.08) == n:
            print(i)
            return
    print(":(")

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
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)
    y = x+1
    z = x -1
    # print(x * 1.08, y*1.08, z*1.08)
    # print(x, y, z)
    if x == n:
        print(x)
    elif y == n:
        print(y)
    elif z == n:
        print(z)
    else:
        print(":(")

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if ((N//1.08)+1)*1.08==N:
  print((N//1.08)+1)
else:
  if (N//1.08)*1.08==N:
    print(N//1.08)
  else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

if ((N//1.08)+1)*1.08==N:
  print((N//1.08)+1)
if (N//1.08)*1.08==N:
  print(N//1.08)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

if ((N//1.08)+1)*1.08==N:
  print((N//1.08)+1)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
X=N/1.08
if X==int(X):
    print(int(X))
elif int(X*1.08)!=N:
    print(":(")
else:
    print(int(X)+1)

Submission status: Wrong Answer

Solution code:
n = int(input())

print(int(n/1.08))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n*100 % 108 == 0:
  print(int(n/1.08))
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(N):
    if int(i * 1.08) == N:
        print(i)
        break
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
pay=int(input())
price=pay/1.08
price=round(price)
#print(price)
if int(price*1.08)==pay:
    print(price)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
pay=int(input())
price=int(pay/1.08)
#print(price)
if int(price*1.08)==pay or int((price+1)*1.08)==pay:
    print(price)
else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = a / 1.08
a = int(a/1.08)
if b == a:
  print(a)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

x = round(n / 1.08)

y = (x * 1.08) // 1
yl = str(y).split('.')

if str(n) == yl[0]:
    print(x)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
m=int(n/1.08)
if n!=int(m*1.08):
  print(":(")
else:
  print(m)

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
X=math.ceil(N/1.08)
if math.floor(X*1.08)==N:
    print(X)
else:
    print('：（')

Submission status: Wrong Answer

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

x = n *100//108
price= math.ceil(x)

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

Submission status: Wrong Answer

Solution code:
N = int(input())

X = int(N / 1.08)
print(X if int(X * 1.08)==N or int((X+1)*1.08==N) else ':(')

Submission status: Wrong Answer

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

b = math.floor(a/1.08)

if a <= b*1.08 and b*1.08 < a + 1:
    print(b)
elif a <= (b + 1)*1.08 and (b + 1)*1.08 < a + 1:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

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

b = math.floor(a/1.08)

if a <= b*1.08 and b*1.08 < a + 1 or a <= (b + 1)*1.08 and (b + 1)*1.08 < a + 1:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

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

b = math.floor(a/1.08)

if a <= b*1.08 and b*1.08 < a + 1 or a <= (b + 1)*1.08 and (b + 1)*1.08:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

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

b = math.floor(a/1.08)
if a <= b*1.08 and b*1.08 < a + 1:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

a=N/1.08
b=(N+1)/1.08

def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False

import math

if is_integer_num(a):
    print(math.floor(a))
elif math.floor(a)!=math.floor(b):
    print(math.floor(b))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

x = N/1.08
if x.is_integer():
    print(int(x))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
X=float(N)/1.08
if X%1==0.0:
    print(int(X))
else:
    Y=math.floor(X)
    if math.floor(Y*1.08)==N:
        print(Y)
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
X=float(N)/1.08
if X%1==0.0:
    print(int(X))
else:
    Y=math.floor(X)
    if math.floor(Y*1.08)==N or math.floor((Y-1)*1.08)==N:
        print(Y)
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
X=float(N)/1.08
if X%1==0.0:
    print(int(X))
else:
    Y=math.floor(X)
    if math.floor(Y*1.08)==N or math.floor((Y-1)*1.08)==N or math.floor((Y+1)*1.08)==N:
        print(Y)
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
for i in range(1,50001):
  if math.floor(math.ceil(int(i/1.08))*1.08)==n:
    print(math.ceil(int(i/1.08)))
    exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
for i in range(1,50001):
  if math.ceil(int(i/1.08)*1.08)==n:
    print(int(i/1.08))
    exit()
print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
a = int(N/1.08)

for i in range(N):
    if int((a+i)*1.08)==N:
        print(a+i)
        break
    elif int((a+i)*1.08)>N:
        print(":(")
        break

Submission status: Wrong Answer

Solution code:
n = int(input())
y = (n*100)%108
x = (n*100)//108
if y == 0:
    print(x)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n=int(input())
val=0
ans=0
for i in range(int(n//1.08)-2,int(n//1.08)+3):
	if i*1.08//1==n:
		ans=i
		val=1
print(': (' if val==0 else ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
x=n/1.08
x_int=round(x)
a=int(x_int*1.08)
if a==n:
    print(x_int)

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
x=n/1.08
x_int=int(x)
a=int(x_int*1.08)
if a==n:
    print(x_int)

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
for i in range(N+1):
    if int(i * 1.08) == N:
        break
if i == N:
    print(":(")
else:
    print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
for i in range(N+1):
    if int(i * 1.08) == N:
        break
print(i)

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
X = 50001
for i in range(1, X):
    if i * 1.08 == N:
        print(i)
        sys.exit(0)
print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
a=round(N/1.08)
if int(a*1.08)==N:
  print(a)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
if math.ceil(n/1.08)*1.08==n:
  print(math.ceil(n/1.08))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
X=int(N*100/108)
print([':(',X][int(X*1.08)==N or int((X+1)*1.08)==N])

Submission status: Wrong Answer

Solution code:
def main(n: int):
    for i in range(n):
        if int(i * 1.08) == n:
            print(i)
            return

    print(':(')


if __name__ == "__main__":
    n = int(input())

    main(n)

Submission status: Wrong Answer

Solution code:
N = int(input())
if -(-N//1.08) <= (N+1)//1.08:
  print(-(-N//1.08))
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(n):
  if int(1.08*i)==n:
    print(i)
    exit()
print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(n):
  if int(1.08*i)==n:
    print(i)
    break
print(':(')

Submission status: Wrong Answer

Solution code:
import math

TAX = 1.08
N = int(input())

value = N / TAX
value_ceil = math.ceil(math.ceil(value) * TAX)
value_floor = math.ceil(math.floor(value) * TAX)

if value_ceil == N:
    print(math.ceil(value))
elif value_floor == N:
    print(math.floor(value))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

TAX = 1.08
N = int(input())

value = N / TAX
value_ceil = math.ceil(math.ceil(value) * TAX)
value_floor = math.ceil(math.floor(value) * TAX)

if value_ceil == N:
    print(math.ceil(value))
elif value_floor == N:
    print(math.ceil(value))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

TAX = 1.08
N = int(input())

value = N / TAX
value_ceil = math.ceil(math.ceil(value) * TAX)
value_floor = math.ceil(math.floor(value) * TAX)

if value_ceil == N:
    print(value_ceil)
elif value_floor == N:
    print(value_floor)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
if (N / 1.08) % 1 == 0:
    print(N / 1.08)
else:
    if (round(N / 1.08)*1.08 // 1) == N:
        print(round(N / 1.08))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
a = 0
if n/1.08 > int(n/1.08):
  a = int(n/1.08+1)
else:
  a = int(n/1.08)

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

main()

Submission status: Wrong Answer

Solution code:
import math as m
n = int(input())
yo = n/1.08
if len(str(yo)) == 16:
    print(":(")
else:
    print(m.ceil(yo))

Submission status: Wrong Answer

Solution code:
import math
x= int(input())
t = x / 108
t *=100
a = round(t)
s = math.floor(a*1.08)

if s != x:
  print(':(')
else:
  print(a)

Submission status: Wrong Answer

Solution code:
import math
x= int(input())
t = x / 108
t *=100
a = math.floor(t)
s = math.floor(a*1.08)
if s != x:
  print(':(')
else:
  print(a)

Submission status: Wrong Answer

Solution code:
import math
x= int(input())
t = x / 108
t *=100
a = math.floor(t)

if (a*1.08) != x:
  print(':(')
else:
  print(a)

Submission status: Wrong Answer

Solution code:
import math
x= int(input())
t = x / 108
t *=100
a = math.floor(t)

if a != x:
  print(':(')
else:
  print(a)

Submission status: Wrong Answer

Solution code:
x= int(input())
t = x / 108
t *=100
a = round(t)
if a >= x:
  print(':(')
else:
  print(a)

Submission status: Wrong Answer

Solution code:
x= int(input())
t = x / 108
t *=100

print(round(t))

Submission status: Wrong Answer

Solution code:
import math

if __name__== "__main__":
    n = int(input())
    res = math.modf(n/1.08)
    
    if res[0] == 0.0:
        print(int(res[1]))
    else:
        print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
import math
#n_ = math.floor(n/1.08)

for i in range(n):
  if math.floor(i*1.08) == n:
    print(i)
    exit()
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
import math
n_ = math.floor(n/1.08)

for i in range(n_, n):
  if math.floor(i*1.08) == n:
    print(i)
    exit()
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())

step0=int((n/108*100))

step1=int((step0/100*108))

if step1!=n:
  print(':(')
else:
  print(step0)

Submission status: Wrong Answer

Solution code:
n=int(input())

step0=(n/108*100)

step1=(step0/100*108)

if step1!=n:
  print(':(')
else:
  print(step0)

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0

for i in range(N):
  if N <= int(i*1.08) < N+1:
    print(i)
    count += 1
    break

if count == 0:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0

for i in range(N):
  if N <= int(i*1.08) < N+1:
    print(i)
    count += 1

if count == 0:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())
untax_N = round(N/1.08)
 
if int(untax_N*1.08) != N:
  print(":(")
else:
  print(untax_N)

Submission status: Wrong Answer

Solution code:
N = int(input())
untax_N = round(N/1.08)
 
if int(untax_N*1.08) != N:
  print(":(")
else:
  pass

Submission status: Wrong Answer

Solution code:
N = int(input())
untax_N = int(N/1.08)
 
if int(untax_N*1.08) != N:
  print(":(")
else:
  pass

Submission status: Wrong Answer

Solution code:
N = int(input())
untax_N = round(N/1.08)

if round(untax_N*1.08) != N:
  print(":(")
else:
  pass

Submission status: Wrong Answer

Solution code:
N = int(input())
i = ":("
for i in range(50000):
  if int(i * 1.08) == N:
    result = i
    break
print(i)

Submission status: Wrong Answer

Solution code:
import math

# 切り捨て
# math.floor(x)

a = int(input())  #432
b = a / 1.08  #400.0
bb = math.floor(b)
c = bb * 1.08   #432.0
d = math.floor(c) #432

if a == d:
    print(bb)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

# 切り捨て
# math.floor(x)

a = int(input())  #432
b = a // 1.08  #400
c = b * 1.08   #432.0
d = math.floor(c) #432

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

Submission status: Wrong Answer

Solution code:
import math

# 切り捨て
# math.floor(x)

a = int(input())  #432
b = a // 1.08  #400
c = b * 1.08   #432.0
d = math.floor(c) #432

print(a, b, c, d)

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

Submission status: Wrong Answer

Solution code:
a = int(input())

print(a / 1.08)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = float(input())

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

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

Submission status: Wrong Answer

Solution code:
import math

n = float(input())

y = n/1.08

x1 = int(math.ceil(y))
x2 = x1 + 1

if round(x1 * 1.08) == n:
	print(x1)
elif round(x2 * 1.08) == n:
	print(x2)
else:
	print(0)

Submission status: Wrong Answer

Solution code:

n=int(input())

for i in range(n):
    if i*108//100==n:
        print(i)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:

n=int(input())
import math
for i in range(n):
    if math.floor(i*1.08)==n:
        print(i)
        exit()
print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for x in range(n):
  if math.floor(x*1.08)==n:
    print(x)
    exit()
print(':(')

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
if isinstance((N+1)/1.08, int):
  X=math.floor((N+1)/1.08)-1
else:
  X=math.floor((N+1)/1.08)
if X < N/1.08:
  print(":(")
else:
  print(X)

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
X=math.floor((N+1)/1.08)
if X < N/1.08:
  print(":(")
else:
  print(X)

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(round(n/1.08))
na = int((x*1.08))
if n==na:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(round(n/1.08))
na = int(round(x*1.08))
if n==na:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(n/1.08)
na = int(x*1.08)
if n==na:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(n/1.08)
na = x*1.08
if n==na:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
amount = int(raw_input('enter: '))
rate = 1.08
ans = int(amount/rate)

if int(ans*rate) == amount:
	print ans

else:
	if int((ans+1)*rate) == amount:
		print(ans+1)
	else:
		print ':('

Submission status: Wrong Answer

Solution code:
from math import floor

n=int(input())
x=floor(n/1.08)

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

Submission status: Wrong Answer

Solution code:
amount = int(input('enter: '))
rate = 1.08
ans = int(amount/rate)

if int(ans*rate) == amount:
	print(ans)

else:
	if int((ans+1)*rate) == amount:
		print(ans+1)
	else:
		print(':(')

Submission status: Wrong Answer

Solution code:
amount = int(input('enter: '))
rate = 1.08
ans = round(amount/rate)

if int(ans*rate) == amount:
	print(ans)

else:
	if int((ans+1)*rate) == amount:
		print(ans+1)
	else:
		print(':(')

Submission status: Wrong Answer

Solution code:
import math
N = int(input()) * 100

zeinuki = N / 108
syousuu = zeinuki - N // 108
a = int(syousuu * 100)   #四捨五入の判断値

if a >= 50 or a == 0:
    print(math.ceil(zeinuki))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
amount = int(input('enter: '))
rate = 1.08
ans = round(amount/rate)

if int(ans*rate) == amount:
	print(ans)

else:
	if int((ans+1)*rate) == amount:
		print(ans)
	else:
		print(':(')

Submission status: Wrong Answer

Solution code:
amount = int(input('enter: '))
ans = round(amount/1.08)

if int(ans*1.08) == amount:
	print(ans)

else:
	print(':(')

Submission status: Wrong Answer

Solution code:
amount = int(input('enter: '))
ans = round(amount/1.08)

if (ans*1.08) == amount:
	print(ans)
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
amount_to_pay_include_tax = float(input('enter:'))
ans = round(amount_to_pay_include_tax/1.08)
if (ans * 1.08) == amount_to_pay_include_tax:
  print(ans)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
k = math.ceil(n/1.08)
l = math.floor((n+1)/1.08)

if k <= l:
	print(k)
else:
 print(':(')

Submission status: Wrong Answer

Solution code:
payment = input()
price = float(payment) / 1.08


if price == round(price):
  print(int(price))
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
if 100*n/108//1==100*(n+1)/108//1:
  print(':(')
elif 100*(n+1)/108%1!=0:
  if 100*(n+1)/108//1*1.08//1==n:
    print(int(100*(n+1)/108//1))
  else:
    print(':(')
else:
  if (100*(n+1)/108//1-1)*1.08//1==n:
    print(int(100*(n+1)/108//1-1))
  else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
if 100*n/108//1==100*(n+1)/108//1:
  print(':(')
elif 100*(n+1)/108%1!=0:
  if 100*(n+1)/108//1*1.08//1==n:
    print(100*(n+1)/108//1)
  else:
    print(':(')
else:
  if (100*(n+1)/108//1-1)*1.08//1==n:
    print(100*(n+1)/108//1-1)
  else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
if 100*n/108//1==100*(n+1)/108//1:
  print(':(')
elif 100*(n+1)/108%1!=0:
  print(100*(n+1)/108//1)
else:
  print(100*(n+1)/108//1-1)

Submission status: Wrong Answer

Solution code:
n = int(input())
n1 = n+1
n2 = n
x1=n1/1.08
x2 =n2/1.08
if x1==int(x1):
  print(int(x1))
  exit()
if int(x1)>=x2:
  print(int(x1))
  exit()
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
n1 = n+1
n2 = n
x1=n1/1.08
x2 =n2/1.08
if int(x1)>=x2:
  print(int(x1))
  exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import math

X = int(input())
a = math.ceil(X / 108 * 100)
b = math.floor(X / 108 * 100)

print(a, b)

if int(a / 100 * 108) == X:
    print(a)
elif int(b / 100 * 108) == X:
    print(b)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
X = int(input())
res = round(X / 108 * 100)
if int(res / 100 * 108) == X:
    print(res)
else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

N_0 = math.ceil(N / 1.08)
M = 10
N_l = [N_0 - M + P for P in range(M*2)]
N_l_tax = [math.floor(1.08*x) for x in N_l]

N_l_out = []

for i in range(len(N_l_tax)):
  if N_l_tax[i] == N:
    N_l_out.append(N_l[i]) 

if len(N_l_out) != 0:
  for j in N_l_out:
    print(j)
else:
  print(':-(')

Submission status: Wrong Answer

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

N_0 = math.ceil(N / 1.08)

N_l = [N_0-2, N_0-1, N_0, N_0+1, N_0+2]
N_l_tax = [math.floor(1.08*x) for x in N_l]

N_l_out = []

for i in range(len(N_l_tax)):
  if N_l_tax[i] == N:
    N_l_out.append(N_l[i]) 

if len(N_l_out) != 0:
  for j in N_l_out:
    print(j)
else:
  print(':-(')

Submission status: Wrong Answer

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

N_0 = math.ceil(N / 1.08)

N_l = [N_0-2, N_0-1, N_0, N_0+1, N_0+2]
N_l_tax = [math.floor(1.08*x) for x in N_l]

N_l_out = []

for i in range(len(N_l_tax)):
  if N_l_tax[i] == N:
    N_l_out.append(N_l_tax[i]) 

if len(N_l_out) != 0:
  for j in N_l_out:
    print(j)
else:
  print(':-(')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(n / 1.08)
n2 = x * 1.08
if x == n2:
    print(x)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
if 100*N%108==0 or int(N/1.08)!=int((N+1)/1.08):
    print(int((N+1)/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
input = sys.stdin.readline

n = int(input())
for i in range(n):
    a = i + int(i * 0.08)
    if a == n:
        print(i)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
f = False
for i in range(N):
    if math.floor(i * 1.08) == N:
        print(i)
        f = True
        break
if not f:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
for i in range(N):
    if math.floor(i * 1.08) == N:
        print(i)
        exit(0)
print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
for i in range(N):
    if round(i * 1.08) == N:
        print(i)
        exit(0)
print(':(')

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
for i in range(N):
    if math.trunc(i * 1.08) == N:
        print(i)
        exit(0)
print(':(')

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
for i in range(N):
  if int(math.floor(i*1.08)) == N:
    print(i)
    exit(0)
print(-1)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
number=int(input())
div100=int(number//100)
get100=div100*100
diff100=number-get100
div5=int(diff100//5) #24...div5 4 mod5 4
mod5=diff100%5
if ((div5+1)*100<number and number>=100)or diff100%100==0:
  print("1")
else:
  print("0")

Submission status: Wrong Answer

Solution code:
n1=int(input())
n2_1=float(n1+0.999999)
n2_2=float(n1)
n3=int(n2_1/1.08)
n4=int(n2_2/1.08)
n3n=int(n3)
n4n=int(n4)
if n3!=n4 or int(n1)==int(n2_1):
  print(n3)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n1=int(input())
n2_1=float(n1+0.999)
n2_2=float(n1)
n3=int(n2_1/1.08)
n4=int(n2_2/1.08)
n3n=int(n3)
n4n=int(n4)
if n3<n2_1 and n3>n2_2:
  print(":(")
else:
  print(n3)

Submission status: Wrong Answer

Solution code:
n1=int(input())
n2_1=float(n1+0.999)
n2_2=float(n1)
n3=int(n2_1/1.08)
n4=int(n2_2/1.08)
n3n=int(n3)
n4n=int(n4)
if n3n==n4n:
  print(":(")
else:
  print(n3)

Submission status: Wrong Answer

Solution 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)
elif int((X+1)*1.08) == N:
    print(X+1)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = int(n / 1.08)
if int(a * 1.08) == n:
  print(a)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = [x for x in range(1, N+1) if x*1.08==N]

if(ans!=[]):
    print(ans[-1])
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
t = {str(i): int(i * 1.08) for i in range(1, 50001)}
for k, v in t.items():
  if N == v:
    print(k)
  else:
    print(":(")

Submission status: Wrong Answer

Solution code:
X = int(input())
mod = X % 100
q = int(X //100)
sum = 0
ans = 0
if q >= 100:
    ans = 1
else:
    for i in range (0,q+1):
        for j in range (0,q+1-i):
            for k in range (0,q+1-i-j):
                for l in range (0,q+1-i-k-j):
                    for m in range (0,q+1-i-j-k-l):
                        sum = i+(2*j)+(3*k)+(4*l)+(5*m)
                        if sum == mod:
                            ans = 1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
from math import floor

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if round(N % 1.08,0) == 1:
    print(int(round(N/1.08)))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
if round(N % 1.08,0) == 1:
    print(int(N/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys
import math
n = int(input())
for i in range(n):
    if math.floor(i * 1.08) == n:
        print(i)
        sys.exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
n = int(input())
for i in range(n):
    if int(i * 1.08) == n:
        print(i)
        sys.exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
if math.ceil(((n*100)/108) * 1.08) == n:
    print(math.ceil((n*100)/108))
  
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
if math.ceil(((n*100)//108) * 1.08) == n:
    print(math.ceil((n*100)/108))
  
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if int(((n*100)//108) * 1.08+0.00001) == n:
    print((n*100)//108)
  
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if int(((n*100)//108) * 1.08) == n:
    print((n*100)//108)
  
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if (((n*100)//108) * 108)//100 == n:
    print((n*100)//108)
  
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == int(((n+0.0001) // 1.08) * 1.08):
    print(int((n+0.0001)//1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == int((n // 1.08) * 1.08):
    print(n//1.08)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n // 1.08 == int((n // 1.08) * 1.08):
    print(n//1.08)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n in [int(i * 1.08) for i in range(1, 50001)]:
  print(int(n / 1.08))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

X = round(float(N / 1.08))

if round(X * 1.08) == N:
  print(X)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
#coding:utf-8
n = int(input())
#切り上げ
x = int(-(-n // 1.08))

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