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())
if (n/1.08).is_integer():
    print(int(n/1.08))
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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)
        break
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:
n = int(input()) * 100

x_min = int(n / 1.08)
x_min_mod = n % 108
x_max = int(n + 100 / 1.08)
x_max_mod = (n + 1) % 1.08

if x_min_mod == 0:
    print(int(x_min / 100))

elif not x_max_mod == 0 and x_max - x_min > 0:
    print(int(x_max / 100))

elif x_max_mod == 0 and x_max - x_min > 100:
    print(int(x_max / 100 - 1))

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

x_min = int(n / 1.08)
x_min_mod = (100 * n) % 108
x_max = int((n + 1) / 1.08)
x_max_mod = (100 * (n + 1)) % 1.08

if x_min_mod == 0:
    print(x_min)

elif not x_max_mod == 0 and x_max - x_min > 0:
    print(x_max)

elif x_max_mod == 0 and x_max - x_min > 1:
    print(x_max - 1)

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
if N%27!=26 and N%27!=13:
  print(int(np.rint(N/1.08)))
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%27!=26 and N%27!=13:
  print(round(N/1.08))
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

if (N*100)%108 != 0:
    print(":(")
else:
    print(int(N/1.08))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

def main():
    n = int(input())
    for x in range(1, n):
        if int(x * 1.08) == n:
            print(x)
            return
    
    print(":(")

main()

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

solve(N)

Submission status: Wrong Answer

Solution code:
N = int(input())

def solve(n):
    for i in range(n):
        if int(i * 1.08) == n:
            print(i)
            return
    print(':(')

solve(N)

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = -1
for x in range(n):
    tmp = int(x*1.08)
    if tmp == n:
        ans = x
        break

if ans == -1:
    print(":(")
else:
    print(ans)

Submission status: Wrong Answer

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

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:
#!/usr/bin/env python3
import sys
import copy
from collections import deque


def main():

    n =int(input())
    for i in range(n):
        if int(i*1.08)==n:
            print(i)
            sys.exit(0)

    print(':(')


main()

Submission status: Wrong Answer

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

f = int(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(f)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
price = n *25 / 27
p = price.is_integer()
if p == True:
    print(price // 1)
elif p == False:
    print(":(")

Submission status: Wrong Answer

Solution code:
#三井住友信託銀行2019-B
import math
n = int(input())

result_int = round(n / 1.08)

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

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

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

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

else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(0,50001):
    if int(i*1.08)==N:
      print(N)
      exit()
print(":(")

Submission status: Wrong Answer

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

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

else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = N//1.08 +1
x = N//1.08
y = N//1.08 -1

if X*1.08 //1 == N:
  print(X)
elif x*1.08//1 == N:
  print(x)
elif y*1.08//1 == N:
  print(y)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = N//1.08 +1
x = N//1.08

if X*1.08 //1 == N:
  print(X)
elif x*1.08//1 == N:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = N//1.08 +1

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math as math

x = int(input())

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

Submission status: Wrong Answer

Solution code:
import math as math

x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
n0 = int(n/1.08)-1

while int(n0 * 1.08) < n:
    n0 += 1

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

Submission status: Wrong Answer

Solution code:
n = int(input())
n0 = int(n/1.08)

while int(n0 * 1.08) < n:
    n0 += 1

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

Submission status: Wrong Answer

Solution code:
import math

ans = -1
n = int(input())

for i in range(1, n):
    if math.floor(i * 1.08) == n:
        ans = i
        break

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

Submission status: Wrong Answer

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

for i in range(math.floor(N/1.08),N):
  if math.floor(i*1.08) == N:
    print(i)
    exit()
print(':(')

Submission status: Wrong Answer

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

for i in range(math.ceil(N/1.08),N):
  if math.floor(i*1.08) == N:
    print(i)
    exit()
print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
stp = int(n/1.08)
while True:
  cost = int(stp*1.08)
  if cost == n:
    ans = cost
    break
  elif cost > n:
    ans = ':('
    break
  else:
    stp += 1
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
stp = int(n/1.08)
while True:
  cost = int(stp*1.08)
  if cost == n:
    ans = cost
    break
  elif cost > n:
    ans = '):'
    break
  else:
    stp += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

MIN = int(N/1.08)
MAX = int((N+1)/1.08)


if (MIN == MAX) and (int(MIN*1.08) == N):
    print(MIN)
elif MIN == MAX:
    print(":(")

for i in range(MIN,MAX+1):
    if int(i* 1.08) == N:
        print(i)
        break
    elif i == MAX:
        print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math

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 collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math

n = int(input())
ans = n/1.08
ans = round(ans)
temp = int(ans*1.08)
if temp == n:
    print(ans)
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()
print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
n = 0
for i in range(N-int((N*0.08)), N):
    
    if int(i*1.08) == N:
        print(i)
        n = 1
        break
if n ==0 :
    print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
x=[(i*108)//100 for i in range(1,n+1)]
if n in x:
  print(n)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0
while N > ans:
    if N == int(ans * 1.08):
        print(ans)
        exit()
    else:
        ans += 1
print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
X_MAX = int(math.ceil(50000 / 1.08))

ans = ':('
for i in range(X_MAX + 1):
    if i * 1.08 == N:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

x = int(n/1.08)
x2 = int((n+1)/1.08)

if x<=n<x2:
    print(':(')
else:
    print(x2)

Submission status: Wrong Answer

Solution code:
n = int(input())

x = int(round(n/1.08))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
flag = True
for i in range(N, 1, -1):
  if int(i*1.08) == N:
    print(i)
    flag = False
    break
if flag:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math
import sys
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 math
N = int(input())
for i in range(N) :
    if math.floor(i * 1.08 ) == N :
        print(i)
        exit()


print(':(')

Submission status: Wrong Answer

Solution code:
import math
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 = float(input())
x = round(N * 100 / 108)
if math.floor(x * 1.08) == N :
    print(x)
else :
    print(':(')

Submission status: Wrong Answer

Solution code:
N=int(input())

Ans=[]
for i in range(N):
    j=i*1.08
    if int(j)==N:
        Ans.append(i)
        
if len(Ans)!=0:
    print(Ans[0])
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

Len=int(N-N*0.1)
Ans=[]
for i in range(Len,N):
    j=i*1.08
    if int(j)==N:
        Ans.append(i)
        
if len(Ans)!=0:
    print(Ans[0])
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

Len=int(N-N*0.1)
Ans=[]
for i in range(Len,N):
    j=i*1.08
    if int(j)==N:
        Ans.append(int(j))
        
if len(Ans)!=0:
    print(Ans[0])
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(int(n * (25 / 27)), int(n * (25/ 27) + 3)):
    if int(i * 1.08) == n:
        print(i)
        exit()
print(-1)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
ans = ""
for i in range(1, N):
  if math.floor(i * 1.08) == N:
    ans = i
    break
print(ans if ans != "" else ":(")

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

if N % 13 == 0:
    print(':(')
else:
    print(math.floor((N+0.99)/1.08))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
x = int(N //1.1)
for i in range(x,N):
    if int(i*1.08)==N:
        print(i)
        sys.exit()
    
print(":(")

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	n = II()
	ch = False
	for i in range(n):
		if(n==int(i * 1.08)):
			print(i)
			ch = True
			break
	if ch==False:
		print(":(")


if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
count = 0
ans = 0
for i in range(N):
    money = 0
    money = math.floor(i*1.08)
    if money == N:
        count += 1
        ans = i
        break
if count == 0:
    print(":(")
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())
import math
ans = math.floor(round(X/1.08))


if math.floor(round(X/1.08)*1.08) != X:
  print(":(")
else:
  print(ans)

Submission status: Wrong Answer

Solution code:
X = int(input())
import math
ans = int((X/1.08)//1)

if math.floor(((X/1.08)//1)*1.08) != X:
  print(":(")
else:
  print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
cost = int(N/1.08)
price = round(N/1.08)
if cost*1.08 == N:
    print(cost)
elif math.floor(price * 1.08) == N:
    print(price)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
# Author: cr4zjh0bp
# Created: Sat Mar 28 15:38:17 UTC 2020
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

n = ni()

flag = False
ans = -1
for i in range(1, n):
    if int(i * 1.08) == n:
        flag = True
        ans = i
        break

print(ans if flag else ":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
for i in range(1, n):
  if math.floor(i * 1.08) > n:
    break
  if math.floor(i * 1.08) == n:
    print(i)
    exit()
print(':(')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
for i in range(1, 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(1, n):
  if round(i * 1.08) == n:
    print(i)
    exit()
print(':(')

Submission status: Wrong Answer

Solution code:
def main():
    import math

    n = int(input())
    x, y = n / 1.08, (n + 1) / 1.08
    a, b = math.ceil(x), math.floor(y)
    if b < a:
        print(':(')
    else:
        print(a)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
N = int(input())*100
x = N // 108
M = (x * 108) // 1
if N == M:
  print(x)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
x = N // 1.08
M = x * 1.08 // 1
if N == M:
  print(x)
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for X in range(int(N/1.1), N):
    if int(X * 1.08) == N:
        print(X)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
for X in range(int(N/1.1), N):
    if int(X * 10.8) == N:
        print(X)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
#B
import math
n=int(input())
ans=None
for i in range(1,n):
    if math.floor(i*1.08)==n:
        ans=i
        break
    if i==n-1:
        ans=":("
print(ans)

Submission status: Wrong Answer

Solution code:
#B
n=int(input())
ans=None
for i in range(1,46297):
    if int(i*1.08)==n:
        ans=i
        break
    if i==46296:
        ans=":("
print(ans)

Submission status: Wrong Answer

Solution code:
import math

N=int(input())

for i in range(1,N):
	if math.floor(i*1.08)==N:
		print(i)
		exit()
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()
print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if 0<=(n%100) % 8<=4:
  print((round(n*(100/108))))
elif (n%100) % 8 == 0:
  print(int(n*(100/108)))
elif (n%100) % 8 >4:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
if N * 25 / 27 % 1 == 0:
  print(int(N * 25 / 27))
elif N * 25 / 27 % 1 >= 0.5:
  print(int(N * 25 / 27) + 1)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
if N * 25 / 27 % 1 == 0:
  print(int(N * 25 / 27))
elif N * 25 / 27 % 1 >= 0.5:
  print(int(N * 25 / 27 + 1))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(n/1.08)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

# N円の候補を羅列
N_list = list()
N_list_int = list() #小数点切り捨て
for n in range(1,50000):
    if(n*1.08 <= 50000):
        N_list.append(n*1.08)
        N_list_int.append(int(n*1.08))#小数点切り捨て
    else: break

# N円の支払い (1 ≤ N ≤ 50000)
print('支払い金額の入力')
N = int(input())
count = 0
for n_int,n in zip(N_list_int,N_list):
    if(n_int == N):
        count += 1
        price = n
    else:  count += 0

# 税抜き価格
if(count == 1): print(int(price/1.08))
else: print(':(')

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
x = int(input())
y = round(x / 1.08)
if int(y * 1.08) == x:
  print(y)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
a = n//1.08
print(int(a+1))

Submission status: Wrong Answer

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

for x in range(n):
    cost = floor(x * 1.08)
    if cost == n:
        print(x)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

for x in range(n):
    cost = int(x * 1.08)
    if cost == n:
        print(x)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

# N円の候補を羅列
N_list = list()
for n in range(1,50000):
    if(n*1.08 <= 50000):
        #小数点切り捨て
        print()
        N_list.append(int(n*1.08))
    else: break

# N円の支払い (1 ≤ N ≤ 50000)
N = int(input())
count = 0
for n in N_list:
    if(n == N):
        count = count + 1
    else: count = count

# 税抜き価格
if(count == 1): print(round(N/1.08))
else: print(':(')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

# N円の候補を羅列
N_list = list()
for n in range(1,50000):
    if(n*1.08 <= 50000):
        #小数点切り捨て
        N_list.append(int(n*1.08))
    else: break

# N円の支払い (1 ≤ N ≤ 50000)
N = int(input())
#N = 432
count = 0
for n in N_list:
    if(n == N):
        count = count + 1
    else: count = count

# 税抜き価格
if(count == 1): print(int(round(N/1.08)))
else: print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

print(":(")

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

Submission status: Wrong Answer

Solution code:
a = input()
if int(a) % 2 == 0:
  print((int(a)*100)//108)
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

N = int(input())

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

Submission status: Wrong Answer

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