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:
def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    n = int(input())
    r = n*100//108
    while r < n:
        u = 108*r//100
        if u == n:
            print(r)
            break
        elif u > n:
            print(':(')
            break
        r += 1


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    n = int(input())
    r = int(n/1.08)
    while r < n:
        u = int(1.08*r)
        if u == n:
            print(r)
            break
        elif u > n:
            print(':(')
            break
        r += 1


if __name__ == '__main__':
    main()

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
    elif i*1.08>n:
        print(":(")
        break

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
    elif math.floor(i*1.08)>n:
        print(":(")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

lower = N / 1.08
upper = (N + 1) / 1.08

vl = math.ceil(lower)
vu = math.floor(upper)

if vl < upper:
  print(vl)
  exit(0)
if lower <= vu:
  print(vu)
  exit(0)
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
if (N*100)%108 == 0 :
    print(N/1.08)
else :
    for i in range(1,100) :
        if (N*100+i) % 108 == 0 :
            print((N*100+i)/108)
            break
    else :
        print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
for x in range(1, 50005):
    if x * 1.08 == n:
        print(x)
        exit()
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:
        print(i)
        break
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
 
## Library
 
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy
 
## input
 
# N=int(input())
# A,B,C,D=map(int, input().split())
# S = input()
# yoko = list(map(int, input().split()))
# tate = [int(input()) for _ in range(N)]
# N, M = map(int,input().split()) 
#    P = [list(map(int,input().split())) for i in range(M)]
#    S = []
#    for _ in range(N):
#        S.append(list(input()))
 
N=int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
value = round(n/1.08)
print(value if value != n//1.08 else ':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

senter = N // 1.08

for i in range(1000):
    if senter-100+i == N:
        print(senter-100+i)
        break
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

x = round(n / 1.08)

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

Submission status: Wrong Answer

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

if N == 1:
    print(1)
    sys.exit()

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: Wrong Answer

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

x = int(0.8*N)

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

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
import math

N = int(input())
X = 0
a = 0
for i in range(N):
  X = math.floor(1.08*i)
  if(X==N):
    print(i)
    a+=1
    break
if(a ==0):
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = 0
a = 0
for i in range(N):
  X = int(1.08*i)
  if(X==N):
    print(i)
    a+=1
    break
if(a ==0):
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
 
for i in range(1, N):
  if i + (i * 8) // 100 == N:
    print(i)
    break
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1, N):
  if i + (i * 8) // 100 == N:
    print(i)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(1, N):
  if i + i * 8 // 100 == N:
    print(i)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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

Submission status: Wrong Answer

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

n = int(input())

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

a=N/1.08
if int(a*1.08)==N:
    print(a)
else:
    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:
n = float(input())
print(int(n / 1.08))

Submission status: Wrong Answer

Solution code:
n = float(input())
n /= 1.08
if n % 10 != 0:
    print(':(')
else:
    print(int(n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
a = math.floor(n / 1.08)
b = math.ceil(n / 1.08)
ans = ''
if a * 1.08 == n:
  ans = a
else:
  ans = ':('
print(ans)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
a = math.floor(n / 1.08)
b = math.ceil(n / 1.08)
ans = ''
if a * 1.08 == n:
  ans = a
elif b * 1.08 == n:
  ans = b
else:
  ans = ':('
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
num=round(n/1.08)
check=int(num*1.08)
if check==n:
    print(num)
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())
for i in range(n):
  if i * 1.08 == n:
    print(i)
    exit()
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

from decimal import Decimal

import sys

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

print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

x = round(n / 1.08)
n_dash = int(x*1.08)
if n_dash == n:
    print(n_dash)
elif n_dash-1 == n:
    print(n_dash-1)
elif n_dash+1 == n:
    print(n_dash+1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
import math
a = n*100/108
b = (n*100+100)/108
ans = math.ceil(a) if math.ceil(a) != b else ":("
print(ans)

Submission status: Wrong Answer

Solution code:
def readinput():
    n=int(input())
    return n

def main(n):
    x7=int(n/1.07)
    x8=int(n/1.08)
    x9=int(n/1.09)
    n100=n*100
    for x in range(max(1,x9-1),x7+1):
        xx=x*108//100
        if xx==n:
            print(x)
            break
    else:
        print(':(')

        

if __name__=='__main__':
    n=readinput()
    main(n)

Submission status: Wrong Answer

Solution code:
def readinput():
    n=int(input())
    return n

def main(n):
    x7=int(n/1.07)
    x8=int(n/1.08)
    x9=int(n/1.09)
    n100=n*100
    for x in range(max(1,x9-1),x7+1):
        xx=x*108
        if xx==n100:
            print(x)
            break
    else:
        print(':(')

        

if __name__=='__main__':
    n=readinput()
    main(n)

Submission status: Wrong Answer

Solution code:
def readinput():
    n=int(input())
    return n

def main(n):
    x7=int(n/1.07)
    x8=int(n/1.08)
    x9=int(n/1.09)
    for x in range(x9,x7+1):
        if int(x*1.08)==n:
            print(x)
            break
    else:
        print(':(')

        

if __name__=='__main__':
    n=readinput()
    main(n)

Submission status: Wrong Answer

Solution code:
N = int(input())

for x in range(N):
    if int(x*1.08) == N:
        print(x)
        break
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

x1 = int(N/1.09)
x2 = int(N/1.07)

for x in range(x1, x2):
    if int(x*1.08) == N:
        print(x)
        break
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

x1 = int(N/1.08)
x2 = int(N/1.07)

for x in range(x1, x2):
    if int(x*1.08) == N:
        print(x)
        break
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    for i in range(N):
        ans = i * 108 // 100
        if ans == N:
            print(i)
            return
    print(':(')

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def resolve():
    import math
    N = int(input())
    n = math.floor(N*0.9)
    for i in range(n, N):
        if math.floor(i*1.08) == N:
            print(i)
            exit()
    print(":(")
resolve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np


N = int(input())

X = int(np.round(N/1.08))

if np.floor(X*1.08)!=N:
    X = ':('

print(X)

Submission status: Wrong Answer

Solution code:
import math
def taxminus(X):
    return X/1.08,(X+1)/1.08
N=int(input())
min,max=taxminus(N)
min=math.ceil(min)
if min>max:
    print(":(")
else:
    print(min)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor

def main(N, rate=1.08):
    ans = -1
    for x in range(1, N+1):
        if floor(x * 1.08) == N:
            ans = x
    return ans


if __name__ == "__main__":
    N = int(input())
    ans = main(N)
    print(ans if ans > 0 else ':)')

Submission status: Wrong Answer

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

for i in range(1,50001):
  a.append(int(i*1.08))
  
if N in a:
  print(S)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
# template by 3xC and starkizard.
# contributors: 

#####################################################################################
from __future__ import division, print_function 

import sys
import os
from collections import Counter, deque, defaultdict
import itertools
import math
import io


"""Uncomment modules according to your need"""


# from bisect import bisect_left, bisect_right, insort
# from heapq import heappop, heapify, heappush
# from random import randint as rn
# from Queue import Queue as Q
# from copy import deepcopy
# from decimal import *
# import re
# import operator

#####################################################################################
# this enables you to write python3 code with PyPy2 (Python 2)
if sys.version_info[0] < 3:
    input = raw_input
    range = xrange

    filter = itertools.ifilter
    map = itertools.imap
    zip = itertools.izip

#####################################################################################

"""value of mod"""
MOD = 998244353
mod = 10**9 + 7

"""Uncomment next 4 lines if doing huge recursion"""
# import threading
# threading.stack_size(1<<27)
# sys.setrecursionlimit(10000

def prepare_factorial(mod=mod):
    """ returns two lists, factorial and inverse factorial modulo argument by default 10**9 +7 """
    # Comment code out when you don't need inverse factorial or vice versa
    fact = [1]
    for i in range(1, 200005):
        fact.append((fact[-1] * i) % mod)

    ifact = [0] * 200005
    ifact[200004] = pow(fact[200004], mod - 2, mod)
    for i in range(200004, 0, -1):
        ifact[i - 1] = (i * ifact[i]) % mod
 
    return fact, ifact

def modinv(n, p):
    """ returns N inverse modulo p """
    return pow(n, p - 2, p)
 
def ncr(n, r,  fact, ifact):
    """ takes 4 arguments: n , r and factorial and inverse factorial lists"""
    t = (fact[n] * (ifact[r]*ifact[n-r]) % MOD)% MOD
    return t


def get_n(Sum):    
    """this function returns the maximum n for which Summation(n) <= Sum"""
    ans = (-1 + sqrt(1 + 8*Sum))//2
    return ans

def sieve(n):
    """ returns a list of prime numbers till n """
    if n < 2: return list()
    prime = [True for _ in range(n + 1)]
    p = 3
    while p * p <= n:
        if prime[p]:
            for i in range(p * 2, n + 1, p):
                prime[i] = False
        p += 2
    r = [2]
    for p in range(3, n + 1, 2):
        if prime[p]:
            r.append(p)
    return r



def divs(n, start=1):
    """ returns a list of all divisors till n """
    divisors = []
    for i in range(start, int(math.sqrt(n) + 1)):
        if n % i == 0:
            if n / i == i:
                divisors.append(i)
            else:
                divisors.extend([i, n // i])
    return divisors



def divn(n, primes):
    """ returns the number of divisors, two arguments n and the sieve till n """
    divs_number = 1
    for i in primes:
        if n == 1:
            return divs_number
        t = 1
        while n % i == 0:
            t += 1
            n //= i
        divs_number *= t



def lrfind(d, x, default=-1):
    """ Takes 2 arguments an iterable and an element. returns a tuple (firstoccurence,lastoccurence) -1 if not found """
    left = right = -1
    for i in range(len(d)):
        if d[i] == x:
            if left == -1: left = i
            right = i
    if left == -1:
        return default, default
    else:
        return left, right

def gcd(x, y): # math.gcd is slower
    """ returns greatest common divisor of x and y """
    while y:
        x, y = y, x % y
    return x

def ceil(n, k=1): return n // k + (n % k != 0) #returns math.ceil but protecting against floating inconsistencies
def input(): return sys.stdin.readline().strip()
def ii(): return int(input()) #inputs integer
def mi(): return map(int, input().split()) # inputting space seperated variables for example x,y,z
def li(): return list(map(int, input().split())) #inputting a space seperated list of integers
def lw(): return input().split() #inputting a space seperated list of strings
def lcm(a, b): return abs(a * b) // gcd(a, b) #returns LCM of two arguments
def prr(a, sep=' ', end='\n'): print(sep.join(map(str, a)), end=end) #For printing an iterable with seperator sep as optional second argument (default : " "), ending character (default: "\n") as optional third
def dd(): return defaultdict(int) #returns a dictionary with values defaulted to 0
def ddl(): return defaultdict(list) #returns a dictionary with values defaulted to []
def write(s): return sys.stdout.write(s)












###################################################################
def main():
    #CODE GOES HERE:
    n=ii()
    c=n/1.08
    if int(int(c)*1.08)==n:
        print(c)
    elif int((int(c)+1 )*1.08)==n:
        print(c+1)
    else:
        print(":(")

















































""" -------- Python 2 and 3 footer by Pajenegod and c1729 ---------"""
 
py2 = round(0.5)
if py2:
    from future_builtins import ascii, filter, hex, map, oct, zip
    range = xrange
 
import os, sys
from io import IOBase, BytesIO
 
BUFSIZE = 8192
 
class FastIO(BytesIO):
    newlines = 0
 
    def __init__(self, file):
        self._file = file
        self._fd = file.fileno()
        self.writable = "x" in file.mode or "w" in file.mode
        self.write = super(FastIO, self).write if self.writable else None
 
    def _fill(self):
        s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
        self.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])
        return s
 
    def read(self):
        while self._fill(): pass
        return super(FastIO, self).read()
 
    def readline(self):
        while self.newlines == 0:
            s = self._fill();
            self.newlines = s.count(b"\n") + (not s)
        self.newlines -= 1
        return super(FastIO, self).readline()
 
    def flush(self):
        if self.writable:
            os.write(self._fd, self.getvalue())
            self.truncate(0), self.seek(0)
 
 
class IOWrapper(IOBase):
 
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        if py2:
            self.write = self.buffer.write
            self.read = self.buffer.read
            self.readline = self.buffer.readline
        else:
            self.write = lambda s: self.buffer.write(s.encode('ascii'))
            self.read = lambda: self.buffer.read().decode('ascii')
            self.readline = lambda: self.buffer.readline().decode('ascii')
 
 
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip('\r\n')
# sys.stdin = open('input.txt', 'r')
# sys.stdout = open('output.txt', 'w')
 
""" main function"""
 
if __name__ == '__main__':
    main()
    # threading.Thread(target=main).start()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import floor
n = int(input())
for i in range(1,n):
    if 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())
x = int(n/1.08+.5)
num = int(x * 1.08)
print(x) if num == n else print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

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


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

Submission status: Wrong Answer

Solution code:
n = int(input())

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


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

Submission status: Wrong Answer

Solution code:
n = int(input())

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


if n % 27 != 0 and xmin == xmax:
  print(":(")
else:
  print(xmax)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#再計算
if math.floor(1.08 * X) == N:
    print(X)
else:
    print(":(")

Submission status: Wrong Answer

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

#再計算
if (X * 1.08) // 1 == N:
    print(X)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
x = int(n/1.08+.5)
print(x) if int(x * 1.08) == n else print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# sumitb2019_b_bacha.py
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())
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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
x=n/1.08
xx=x*10
if xx%10==0:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

import math
import sys

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

if N%1.08 != 0:
  print(":(")
else:
  print(N//1.08)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

a=int(N*100/110)-1

flg=False

for i in range (N-a+1):
    if ((a+i)*1.08)//1==N:
        print(a+i)
        exit
    else:
        pass
print(':(')

Submission status: Wrong Answer

Solution code:
N=int(input())

a=int(N*100/110)-1

flg=False

for i in range (N-a):
    if (a*1.08)//1==N:
        print(a+i)
        exit
    else:
        pass
print(':(')

Submission status: Wrong Answer

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

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

if a+1 <b:
    print((a+0.9999999999999999999999999999)//1)
else:
    print(":(")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.5))

if round((ans*1.08)+0.5) == N:
    print(ans)
else:
    print(":(")

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.5))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.5))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.5))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.1))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.1))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108)+0.01))

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

Submission status: Wrong Answer

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

ans=int(round((N*100/108))+0.1)

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

Submission status: Wrong Answer

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

ans=int(round((N/1.08)+0.1))

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

Submission status: Wrong Answer

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

ans=int(round((N/1.08)+0.1))

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

Submission status: Wrong Answer

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

ans=int(round((N/1.08)+0.1))

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

Submission status: Wrong Answer

Solution code:
N=int(input())

ans=int(round((N/1.08)+0.1))

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

Submission status: Wrong Answer

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

ans=int(round((N/1.08)+0.05))

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

Submission status: Wrong Answer

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

ans=int(round((N/1.08)+0.001))

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

Submission status: Wrong Answer

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

ans=round((N/1.08)+0.001)

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

Submission status: Wrong Answer

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

ans=round(N/1.08)

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

Submission status: Wrong Answer

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

ans=(N/1.08)//1

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

Submission status: Wrong Answer

Solution code:
N=int(input())

ans=round((N/1.08)+0.01)

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

Submission status: Wrong Answer

Solution code:
N=int(input())

ans=round((N/1.08)+0.01)

if round((ans*1.08)+0.01)==N:
    print(ans)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

ans=round(N/1.08)
if round(ans*1.08)==N:
    print(ans)
else:
    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 x in range(1,10000):
  if x*108//100==N:
    print(x)
    break
if x==9999:
  print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
for x in range(1,10000):
  if int(x*1.08)==N:
    print(x)
    break
if x==9999:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

n_1 = n + 1

if n == 1:
    print(':(')
    exit(0)

s = int(n // 1.08)
t = int(n_1 // 1.08)
if s % 1.08 == 0:
    print(s)
elif s != t:
    print(t)
else :
    print(':(')

Submission status: Wrong Answer

Solution code:

n = int(input())

n_1 = n + 1

if n == 1:
    print(':(')

s = int(n // 1.08)
t = int(n_1 // 1.08)
if s % 1.08 == 0:
    print(s)
elif s != t:
    print(t)
else :
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

n_1 = n + 1

s = int(n // 1.08)
t = int(n_1 // 1.08)
if s % 1.08 == 0:
    print(s)
elif s != t:
    print(t)
else :
    print(':(')