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: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
for n in range(100000):
    x = int(n*1.08)
    if N==x:
        print(n)
        exit()
    if x > N:
        break
print(':(')

Submission status: Accepted

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

for i in range(1000000):
  if i * 108 // 100 == N:
    print(i)
    sys.exit()

print(':(')

Submission status: Accepted

Solution code:
ng = ":("

n = int(input())

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

Submission status: Accepted

Solution code:

from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

N = inp()

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


print(":(")

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for x in sys.stdin.readline().split()]
def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res
def IR(n):
    return [I() for i in range(n)]
def LIR(n):
    return [LI() for i in range(n)]
def SR(n):
    return [S() for i in range(n)]
def LSR(n):
    return [LS() for i in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

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

#Solve
if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

# Input the amount of money Takahashi paid
N = int(input())

# Find nearest integer price more than or equal to X/1.08
X = math.ceil(N / 1.08)

# Check if the "taxed price" is equal to N yen
if math.floor(X * 1.08) == N:
	print(X)
else:
	print(":(")

Submission status: Accepted

Solution code:
# Input the amount of money Takahashi paid
N = int(input())

# Check if the price before tax is X, for X = 1, 2, 3, ..., N
ans = -1
for i in range(1, N + 1):
	if int(i * 1.08) == N:
		ans = i

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

Submission status: Runtime Error

Solution code:
n=int(input()) 
flag = False
for i in range(100*n,100*(n+1)):
  if i%108 == 0:
    x == int(i//108)
    print(x)
    flag == True
    break
if flag == False:
  print(':(')

Submission status: Runtime Error

Solution code:
n=int(input()) 
flag == False
for i in range(100*n,100*(n+1)):
  if i%108 == 0:
    x == int(i//108)
    print(x)
    flag == True
    break
if flag == False:
  print(':(')

Submission status: Runtime Error

Solution code:
N = int(input())
S = math.ceil(N / 1.08)
if S * 1.08 != N:
  print(":(")
else:
  print(S)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = N / 1.08
if math.ceil(S) * 1.08 != N:
  print(":(")
else:
  print(math.ceil(S))

Submission status: Runtime Error

Solution code:
import math
N=float(input())
a=math.ceil(N/(1.08))
for i in range(a,N):
    if math.floor(i*1.08)==N:
        print(a)
        break
    else:
        print(':(')

Submission status: Runtime Error

Solution code:
import math
N=float(input())
a=math.ceil(N/(1.08))
for i in range(a,N):
    if math.floot(i*1.08)==N:
        print(a)
        break
    else:
        print(':(')

Submission status: Runtime Error

Solution code:
import math
N=int(input())
a=math.ceil(N/(1.08))
for i in range(a,N):
    pass in range(a,N):
    if i==N:
        print(a)
        break
    else:
        print(':(')

Submission status: Runtime Error

Solution code:
N = int(input())
 
ans = ":("
 
for X in range(N-1):
  if int(X * 1.08) = N:
    ans = X
    break
    
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
 
x = N // 1.08
 
if x*1.08 < N or x*1.08 > N+1:
  print(":(")
else:
  for y in range(x-1, x+1):
    if N+!> y*1.08 > N:
      print(y)
      break
    else:
      print(":(")

Submission status: Runtime Error

Solution code:
N = int(input())
 
ans = -1
for i in range(N):
	if math.floor(float(i)*1.08) == N:
    	ans = i
      
if ans == -1:
  print(':(')
  
else:
  print(ans)

Submission status: Runtime Error

Solution code:
import math

N = int(input())
 
ans = -1
for i in range(N):
	if math.floor(i*1.08) == N:
    	ans = i
      
if ans == -1:
  print(':(')
  
else:
  print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
 
ans = -1
for i in range(N):
	if round(i*1.08) == N:
    	ans = i
      
if ans == -1:
	print(':(')
  
else:
	print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
 
ans = -1
for i in range(N):
	if round(i*1.08) == N:
    	ans = i
      
if ans == -1:
  print(':(')
  
else:
  print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())

ans = -1
for i in range(N)
	if round(i*1.08) == N:
    	ans = i
      
if ans == -1:
  print(':(')
  
else:
  print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
m=rond(n/1.08)
if int(m*1.08)==n:
  print(m)
else:
  if int((m-1)*1.08)==n:
    print(m-1)
  elif int((m+1)*1.08)==n:
    print(m+1)
  else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
N=int(input())
s=N/1.08
s=math.ceil(s)
t=s*1.08
t=math.floor(t)
if N==t:
    input(s)
else :
    input(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
n=int(input())
x=n/1.08
nn=x*1.08
if n<=nn<n+1:
    if x*10%10>=5:    
		print(int(x)+1)
    else:
        print(int(x))
else:
  print(":(")

Submission status: Runtime Error

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

if __name__ == "__main__":
    main2()

Submission status: Runtime Error

Solution code:
def main2():
    n = int(input())
    x = int(math.ceil(n / 1.08))
    
    if x == n:
        print(x)
    else:
        print(":(")

if __name__ == "__main__":
    main2()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N = int(input())

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

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

Submission status: Runtime Error

Solution code:
#4
N = int(input())
x,y,k = 0,0,0

x = int(0.8*N)

for i in range(x,N):
    k = str(i*108)
    if int(k[0:-2]) == N:
        print(i)
        y +=1
        break

if y !=1:
    print(":(")

Submission status: Runtime Error

Solution code:
#4
N = int(input())
x,y,k = 0,0,0

x = int(0.8*N)

for i in range(x,N):
    k = str(int(i*108))
    if int(k[0:-2]) == N:
        print(i)
        y +=1
        break

if y !=1:
    print(":(")

Submission status: Runtime Error

Solution code:
#4
N = int(input())
x,y,k = 0,0,0

x = int(0.8*N)

for i in range(x,N):
    k = int(i*108)
    if k[0:-2] == N:
        print(i)
        y +=1
        break

if y !=1:
    print(":(")

Submission status: Runtime Error

Solution code:
#4
N = int(input())
x,y,k = 0,0

x = int(0.8*N)

for i in range(x,N):
    k = int(i*108)
    if k[0:-2] == N:
        print(i)
        y +=1
        break

if y !=1:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from decimal import Decimal
n = int(input())

ansdic = {}
for i in range(1,5001):
  ansdic[i] = int(i * Decimal(1.08))

print(ansdic[n])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
for i in raNge(N+1):
    if int(i*1.08)==N:
        primt(i)
        exit()
print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

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

Submission status: Runtime Error

Solution code:
N=input()
S=float(N/1.08)
G=int(S*1.08)
if N==G:
  print(int(S))
else:
  print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if ans == 0:
    print(":(")
else:
    print(x)

Submission status: Runtime Error

Solution code:
from decimal import Decimal
N = int(input())
M = N/Decimal(1.08)
if N == int(M*Decimal(1.08)) :
    print( int(M))
else :
    print(:()

Submission status: Runtime Error

Solution code:
import decimal 
N = int(input())
M = N/Decimal(1.08)
if N == int(M*Decimal(1.08)) :
    print( int(M))
else :
    print(:()

Submission status: Runtime Error

Solution code:
import decimal from Decimal 
N = int(input())
M = N/decimal(1.08)
if N == int(M*decimal(1.08)) :
    print( int(M))
else :
    print(:()

Submission status: Runtime Error

Solution code:
# N=1079
N=int(input())

a=str(N*100/108)
b=str((N+1)*100/108)

if a+1 <=b:
    print(round(a+0.5))
else:
    print(":(")

Submission status: Runtime Error

Solution code:
# N=1079
N=int(input())

a=str(N*100/108)
b=str((N+1)*100/108)

print(a,b)

if a+1 <=b:
    print(round(a+0.5))
else:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

import.math

x = n / 1.08
m = math.floor(n * 1.08)

if m == n:
    print(x)
else:
    print(':(')

Submission status: Runtime Error

Solution code:
import math

N = int(input())

a = math.floor(n / 1.08)
b = a + 1

aa = math.floor(a * 1.08)
bb = math.floor(b * 1.08)

if(aa == N):
    print(aa)
elif(bb == N):
    print(bb)
else:
    print(":(")

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

n = int(input())

def bs(ok, ng, cond):
    while abs(ok - ng) > 1:
        mid = (ok + ng) // 2
        if cond(mid):
            ok = mid
        else:
            ng = mid
    return mid

ans = bs(n, 0, lambda x: (x * 1.08) >= n)
if int(ans * 1.08) == n:
    print(ans)
else:
    print(':(')

Submission status: Runtime Error

Solution code:
def resolve():
    import math
    N = int(input())
    price = N/1.08
    reTaxprice = math.floor(math.floor(price)*1.08)
    if reTaxprice == N:
        print(ans)
    else:
        print(':(')
resolve()

Submission status: Runtime Error

Solution code:
h, w=map(int, input().split())
# 偶数と奇数で場合分け
if h%2==0:
  # 1列でh/2個のマスできるからあとは横何個あるかだけ
  print(int(h*w/2))
else:
  set1=h
  if w%2==0:
    print(int(set1*w/2))
  else:
    rm=w//2
    print(int(set1*rm+h//2+1))

Submission status: Runtime Error

Solution code:
import math
N = int(input())
p = [int(N/1.08), math.ceil(N/1.08)]

for n in p:
    if int(n*1.08)==N:
        print(n)
        sys.exit()

print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

x = N//1.08
if x * 1.08 == int(a):
  print(x)
  
else:
  print(':/')

Submission status: Runtime Error

Solution code:
a=int(input())
b=1.08
d=int(a/b)
d=d-1
hoge=0
for i in range(4):
  if(int(d*c)==a and hoge==0)
    print(a)
    hoge=1
  d=d+1
if(hoge==0):
  print(":(")

Submission status: Runtime Error

Solution code:
def resolve():
  found = False
  N = int(input())
  for x in range(int(N/1.08), int((N+1)/1.08+1)):
    if N == math.floor(x*1.08):
      print(x)
      found = True
      break
  
  if not found:
    print(":(")
  
resolve()

Submission status: Runtime Error

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby, combinations_with_replacement
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N, A, B, C = MAP()

s = [input() for _ in range(N)]

Submission status: Runtime Error

Solution code:
n = int(input())
frag = True
for i in range(n):
  if i*108//100 = n:
    print(i)
    frag=False
    break
if frag:
  print(":(")

Submission status: Runtime Error

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

res = []
for i in range(N):
    cal = math.floor(i * 1.08)
    if cal == N:
        res.append(i)
print(res[0])

Submission status: Runtime Error

Solution code:
N = int(input())

X = N / 1.08

for x in range(X-2, X+3):
    n = int(x * 1.08)
    if n == N:
        print(n)
print(':(')

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N = int(input())
flag = 0
for i in range(1,54001):
    if math.floor(i*1.08) == N:
        print(i)
        flag += 1
        break
if flag == 0:
    print(":(")

Submission status: Runtime Error

Solution code:
N = int(input())
A = N//1.08
for i in range(100):
  if N/1.08 <= A+i <= (N+1)/1.08 and N/1.08 <= A+i:
    print(A+i)
  elif N/1.08 >= A+i:
  else:
    break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def resolve():
    N = int(input())
    x = int(N // 1.08)
    if math.floor(x * 1.08) == N:
        print(x)
    elif math.floor((x + 1) * 1.08) == N:
        print(x + 1)
    else:
        print(":(")


if __name__ == "__main__":
    resolve()

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
import numpy as np
N = int(input())

x = N / 1.08
c = int(np.ceil(x))
f = int(np.floor(x))
if int(c * 1.08) == N:
  print(c)
elif int(f * 1.08) == N:
  print(f)
else:
  print(':('

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#B(別解)
n=int(input())
x=math.ceil(n/1.08)
if math.floor(x*1.08)==n:
    print(x)
else:
    print(":(")

Submission status: Runtime Error

Solution code:
import math
N = int(input())
A = []
I = []
cnt=0

for i in range(50000):
  I.append(i)
  A.append(math.floor(1.08*i))

for i in range(len(A)+1):
  if A[i]==N:
    cnt+=i

if cnt!=0:
  print(cnt)
elif cnt==0:
  print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
N=input()
n=math.floor(N/1.08)
N1=math.floor(1.08*n)
N2=math.floor(1.08*(n+1))

if N==N1 or N==N2:
  print(n)
else:
  print(':(')

Submission status: Runtime Error

Solution code:
import math

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

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

Submission status: Runtime Error

Solution code:
import math

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    import math
     
    # Input the amount of money Takahashi paid
    N = int(input())
     
    # Find nearest integer price more than or equal to X/1.08
    X = math.ceil(N / 1.08)
     
    # Check if the "taxed price" is equal to N yen
    if math.floor(X * 1.08) == N:
    	print(X)
    else:
    	print(":(")

Submission status: Runtime Error

Solution code:
import math
     
# Input the amount of money Takahashi paid
N = int(input())
     
# Find nearest integer price more than or equal to X/1.08
X = math.ceil(N / 1.08)
     
# Check if the "taxed price" is equal to N yen
if math.floor(X * 1.08) == N:
print(X)
else:
print(":(")

Submission status: Runtime Error

Solution code:
N = map(int.input().split())
X = N/1.08
print(X)

Submission status: Runtime Error

Solution code:
N = map(int.input().split())
X =n/1.08
print(X)

Submission status: Runtime Error

Solution code:
import math, sys
N = int(input())
x = math.floor(N/1.08)
c = [x-1, x, x+1]
C = c*1.08
for i, j in zip(c, C):
    if j == N:
        print(i)
        sys.exit()
print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
d,m=divmod(n,1.08)
print[':(',d][m==0 or m<=0.5])

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math
N=int(input())
if isinstance(i(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: Runtime Error

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

Submission status: Runtime Error

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

if(a%int(a)>=0.5):
  X = int(a)+1
else:
  X = int(a)

ans = int(X*1.08)

if(ans != N):
	print(':(')
    
else:
  	print(X)

Submission status: Runtime Error

Solution code:
import math

n = int(input())

x = math.ceil(n / 1.08)

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

Submission status: Runtime Error

Solution code:
N = int(input())

ans = -1
for i in range(1, N+1)
	if int(i * 1.08)==N:
    	ans = i

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

Submission status: Runtime Error

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


if isinstance(price, int):
  print(price)
else:
  print(':(')

Submission status: Runtime Error

Solution code:
N = int(input())
X_double = N / 1.08
if (X_double % 1) == 0:
  print(int(X_duoble))
else:
  X_ceil = ceil(X_double)
  if floor(X_ceil * 1.08) == N:
    print(X_ceil)
  else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n =input()
a = n / 1.08
if a-int(a) == 0.00:
      x = int(a)
else:
      x = int(a) + 1
v = int(x * 1.08)
if v == n:
  print(x)
else:
  print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = n / 1.08
if float(n%1.08) ==0:
      x = int(a)
else:
      x = int(a) + 1
v = int(x * 1.08)
print(x,v,n)
if v == n:
  print(x)
else:
  print(":(")

Submission status: Runtime Error

Solution code:
n = input()
a = n / 1.08
if float(n%1.08):
      x = int(a)
else:
      x = int(a) + 1
v = int(x * 1.08)
if v == n:
  print(x)
else:
  print(":(")

Submission status: Runtime Error

Solution code:
import math

N = int(input())

X = round(float(X / 1.08))

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

Submission status: Runtime Error

Solution code:
import math

N = int(input())

predict_price1 = math.floor((N)  / 1.08)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N+1)  / 1.08)  # 整数で計算,切り上げ処理

if predict_price1 == predict_price2:
    print(predict_price1)
else:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

ans = -1

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

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

Submission status: Runtime Error

Solution code:
N = int(input())

ans = -1

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

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

Submission status: Runtime Error

Solution code:
N=int(input())
a=math.ceil(N/1.08)
b=math.floor(a*1.08)
print(a if N==b else ":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
px_up = math.ceil(n/1.08)
px_next = (n+1)/1.08
 
if px_up <= px_next:
  print(px_up)
else:
  print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
if (n//1.08)%2==0:
  print(n//1.08)
else:
  print(:()

Submission status: Runtime Error

Solution code:
    a = int(input())

    X = int(a/1.08 + 0.9)

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

Submission status: Runtime Error

Solution code:
usrInput = input()
taxRate = 0.08
finding = 1
whileIs = True
foundIs = False

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

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

Submission status: Runtime Error

Solution code:
N = int(input())

for X in range(N):
  if N/1.08 <= X and X < (N+1)/*1.08:
    print(X)
    break
  else:
    print(":(")

Submission status: Runtime Error

Solution code:
N = int(input())

for 
N/1.08 < X < (N+1)/*1.08

for X in range(N):
  if N/1.08 <= X and X < (N+1)/*1.08:
    print(X)
    break
  else:
    print(":(")

Submission status: Runtime Error

Solution code:
N=int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
import math

def main():
    N = int(input())
    N_x = 100*N
    for x in range(N_x-50, N_x+50):
        if(x%108==0):
            print(x//108)
			sys.exit()
    print(":(")

main()

Submission status: Runtime Error

Solution code:
import math 
N = int(input())
if(N>=1 or N<=50000)
if(math.floor(round(N/1.08)*1.08) == N):
  print(round(N/1.08))
else:
  print(":(")

Submission status: Runtime Error

Solution code:
import math
from decimal import Decimal
 
n = int(input())
 
if n == 0:
  print(':(')
else:
  for i in range(1, n):
    if math.floor(Decimal(str(i)) * Decimal("1.08")+0.000001) == n:
      print(i)
      break
  else:
    print(':(')

Submission status: Runtime Error

Solution code:
import math
from decimal import Decimal
 
n = int(input())
 
if n == 0:
  print(':(')
else:
  for i in range(1, n):
    if math.floor(Decimal(str(i)) * Decimal("1.08")) == n:
      print(i)
      break
  else:
    while True:
	  pass

Submission status: Runtime Error

Solution code:
#include <stdio.h>
 
int main(void){
  int a;
  int ans;
  
  scanf("%d",&a);
  
  ans = a/1.08;
  if(ans*1.08 == a){
    printf("%d\n",ans);
  }else{
    printf(":(");
  }
  
  return 0;
}

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
#define rep(i,n) for(int (i) = 0;(i) < (n);(i)++)
using namespace std;
typedef long long ll;
// cd test ; rm -R ./*; cd ..


int main(void) {
  int n;
  cin >> n;
  
  for (int i = 1; i <= 50000; i++) {
    if ((int)floor(i * 1.08) == n) {
      cout << i << endl;
      return 0;
    }
  }
  cout << ":(" << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
ans = []

num = int(input())

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

print(int(ans.index(num))+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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