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:
#coding:utf-8
n = int(input())
x = n // 1.08

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8
n = int(input())
print(n // 1.08)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

if predict_price1 < predict_price2:
    if math.floor(predict_price1 * 1.08) == N:
        print(predict_price1)
    else:
        print(predict_price2)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

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

Submission status: Wrong Answer

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

Solution code:
import math

N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

def solve(N):
    for i in range(60000):
        if int(i * 1.08) == N:
            print(i)
    else:
        print(":(")

solve(N)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

for X in range(1, N+1):
  if(int(1.08*X) == N):
    print(X)
    exit(0)

print(":()")

Submission status: Wrong Answer

Solution code:
import math

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

for X in range(1, N+1):
  if(int(1.08*X) == N):
    print(X)
    exit(0)

print(":()")

print(X)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
foo=[i for i in range(0,n)if math.floor(i*1.08)==n]
print(':('if len(foo)==0 else foo[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
s=a/1.08
if a%8==0:
    print(int(a/1.08))
elif math.floor(math.floor(s)*1.08)!=a and math.floor(math.ceil(s)*1.08)!=a:
    print(":(")
elif math.floor(math.floor(s)*1.08)==a:
    print(math.floor(math.floor(s)))
elif math.floor(math.ceil(s)*1.08)==a:
    print(math.floor(math.ceil(s)))

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
s=a/1.08
if a%8==0:
    print(int(a/1.08))
elif math.floor(math.floor(s)*1.08)!=a and math.floor(math.ceil(s)*1.08)!=a:
    print(":(")
elif math.floor(math.floor(s)*1.08)==a or math.floor(math.ceil(s)*1.08)==a:
    print(math.ceil(s))

Submission status: Wrong Answer

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

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

print(':(')

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:
n = int(input())
print(n / 1.08)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0

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

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

Submission status: Wrong Answer

Solution code:
N = -1
_continue = True
while _continue:
    try:
        N = int(input())
        if 1 <= N <= 50000:
            _continue = False
    except ValueError:
        pass
X = N/1.08
R = int(X * 1.08)
if R == N:
    print(int(X))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = -1
_continue = True
while _continue:
    try:
        N = int(input())
        if 1 <= N <= 50000:
            _continue = False
    except ValueError:
        pass
X = N/1.08
R = int(X * 1.08)
if int(R) == N:
    print(round(X))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = -1
_continue = True
while _continue:
    try:
        N = int(input())
        if 1 <= N <= 50000:
            _continue = False
    except ValueError:
        pass
X = N/1.08
R = round(X) * 1.08
if int(R) == N:
    print(round(X))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = -1
_continue = True
while _continue:
    try:
        N = int(input())
        if 1 <= N <= 50000:
            _continue = False
    except ValueError:
        pass
X = N/1.08
print(X, " ", round(X))
R = int(X * 1.08)
if R == N:
    print(round(X))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0

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

if count == N-1:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
if 1 <= N <= 50000:
  X = N/1.08
  print(X, " ", round(X))
  R = round(X) * 1.08
  print(R)
  if int(R) == N:
      print(round(X))
  else:
      print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

n = inp()
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 = round(N / 1.08, 0)
if int(X*1.08) == N:
    print(int(X))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math
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: Wrong Answer

Solution code:
import sys

def main():
    n = int(sys.stdin.readline().rstrip())
    x = int(n / 1.08) # 切り捨て

    res = []
    while x * 27 // 25 == n:
        res.append(x)
        x += 1
    if res:
        print(res[0])
    else:
        print(':(')
        
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
from math import ceil, floor
def main():
    n = int(sys.stdin.readline().rstrip())
    x = ceil(n * 1.08)
    if floor(x * 1.08) == n:
        print(x)
    else:
        print(':(')
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
def solve():
  n = int(input())
  tax = n-n/(1.08)
  price = n-tax//1
  if n == price*1.08//1:
    print(price//1)
  else:
    print(":(")
solve()

Submission status: Wrong Answer

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

ans = round(N * 100 / 108)
sum = floor(ans * 1.08)
if sum < N:
    print(':(')
else:
    print(ans)

Submission status: Wrong Answer

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

ans = round(N * 100 / 108)
print(ans)
sum = floor(ans * 1.08)
print(sum)
if sum < N:
    print(':(')
else:
    print(ans)

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

# N円で買える金額
X_low = 1
# N円で買えない金額
X_high = N


def can_buy(price):
    return int(price * 1.08) <= N


while X_high - X_low > 1:
    x = int(X_high + X_low) // 2
    if can_buy(x):
        X_low = x
    else:
        X_high = x

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

Submission status: Wrong Answer

Solution code:

N = int(input())

ans = round(N * 100 / 108)
if ans * 1.08 < N:
    print(':(')
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

# N円で買える金額
X_low = 1
# N円で買えない金額
X_high = N


def can_buy(price):
    return price * 1.08 >= N


while X_high - X_low > 1:
    x = int(X_high + X_low) // 2
    if can_buy(x):
        X_low = x
    else:
        X_high = x

if int(X_low * 1.08) == N:
    print(1)
else:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())+1;print(n%27%14and n//1.08or':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = n/1.08
ans2 = int(ans)
if ans-ans2>0:
    print(":(")
elif ans-ans2<0:
    print(":(")
else:
    print(int(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = n/1.08
ans2 = int(ans)
if ans-ans2>0:
    print(":(")
else:
    print(int(ans))

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

X = float(N/1.08)

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

else:
 print(':(')

Submission status: Wrong Answer

Solution code:
a = int(input())

X = int(a/1.08 + 0.99999999999999)

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

Submission status: Wrong Answer

Solution code:
# 入力が10**5とかになったときに100ms程度早い
import sys
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_matrix(H):
    '''
    H is number of rows
    '''
    return [list(map(int, read().split())) for _ in range(H)]


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols

    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])

    return ret


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

Submission status: Wrong Answer

Solution code:
a = int(input())

X = int(a/1.08 + 0.5)

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

Submission status: Wrong Answer

Solution code:
a = int(input())

if a <= int(int((a/1.08))*1.08) <= a+1: 
    print(int((a/1.08)+0.5))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

a1 = int(input())

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

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

else:
 print(':(')

Submission status: Wrong Answer

Solution code:
a = int(input())

if a <= int(int((a/1.08)+0.5)*1.08) <= a+1: 
    print(int((a/1.08)+0.5))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
def main():
    from math import ceil
    N = int(input())
    X = ceil(N/1.08)
    if X*1.08 == N:
        print(X)
    else:
        print(":(")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

for i in range(0, 50000):
  if math.floor(i*1.08) == N and i < N:
    print(i)
    exit()

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:
import sys, math
from collections import defaultdict
from copy import deepcopy
import itertools
input = sys.stdin.readline
# 文字列の場合は普通のinput()を使うか下を使う
# input = sys.stdin.readline().rstrip()

N = int(input())
print('pre={}, post={}'.format(N/1.08, (N+1)/1.08))

if math.floor(N / 1.08) == N / 1.08:
    print(math.floor(N / 1.08))
elif math.floor((N + 1) / 1.08) == (N + 1) / 1.08:
    X = math.floor((N + 1) / 1.08) - 1
    Y = N / 1.08
    if Y < X:
        print(X)
    else:
        print(':(' )
else:
    X = math.floor((N + 1) / 1.08)
    Y = N / 1.08
    if Y < X:
        print(X)
    else:
        print(':(' )

Submission status: Wrong Answer

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

if m * 1.08 == n:
    print(m)
elif (m + 1) * 1.08 == n:
    print(m + 1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = int(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)
i=X
while i<N:
  if int(i*1.08)==N:
    print(i)
    exit()
  else:
    i+=1
print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
X=0
i=X
while i<N:
  if int(i*1.08)==N:
    print(i)
    exit()
  elif int(i*1.08)<N:
    i+=1
  else:
    print(":(")
    exit()

Submission status: Wrong Answer

Solution code:
input_ = int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())
X=int(N/1.08)
i=X-1
while i<N:
  if int(i*1.08)==N:
    print(i)
    exit()
  elif int(i*1.08)<N:
    i+=1
  elif int(i*1.08)>N:
    print(":(")
    exit()

Submission status: Wrong Answer

Solution code:

if __name__ == "__main__":
    N = int(input())
    ret = N / 1.08
    if ret % 1 == 0 :
        print(int(ret))
    else:
        print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input_ = int(input())

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

Submission status: Wrong Answer

Solution code:
N = -1
_continue = True
while _continue:
    try:
        N = int(input())
        if 1 <= N <= 50000:
            _continue = False
    except ValueError:
        pass
X = N/1.08
print(X, " ", round(X))
R = round(X) * 1.08
print(R)
if int(R) == N:
    print(round(X))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
X=int(N//1.08)
i=X-1
while i<N:
  if int(i*1.08)==N:
    print(i)
    exit()
  elif int(i*1.08)<N:
    i+=1
  else:
    print(":(")
    exit()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(1, n):
  if math.floor(Decimal(str(i)) * Decimal("1.08") + Decimal('0.000000001')) == n:
    print(i)
    break
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
from math import floor, ceil


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

    ans = n * 100 // 108

    if (ans * 108) // 100 == n:
        print(ans)
    elif (ans * 108) // 100 + 1 == n:
        print(ans + 1)
    else:
        print(':(')

Submission status: Wrong Answer

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

Solution code:
import math

n = int(input())
zei = 1.08
zeikake = 0.926


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

if (is_integer_num(n/zei)):
    print(round(n/zei))
else:
    if(round(math.modf(n/zei)[0])):
        print(math.floor(n/zei))
    else:
        print(':(')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

N_test = N / 1.08

N_test1 = N_test * 1.08

a = round(N_test) * 1.08

if math.floor(a) == math.floor(N_test1):
  print(round(N_test))
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import math

N =int(input())

X =math.floor(N/1.08)
XX =math.floor(X*1.08)

if X == XX:
    print(math.ceil(N/1.08))
else:
    print(":(")

Submission status: Wrong Answer

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


if isinstance(X,int)=="True":
    print(X)
else:
        print(":(")

Submission status: Wrong Answer

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

N = int(input())
A = (N*100)%108
N = N*100/108

if A == 0:
  print(int(N))
else:
  print(":(")

Submission status: Wrong Answer

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)

    print(":(")

main()

Submission status: Wrong Answer

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") + Decimal('0.000001')) == n:
      print(i)
      break
  else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

a = int(input())

b = round(a / 1.08)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import math

N =int(input())

X =math.floor(N/1.08)
XX =math.floor(X*1.08)

if not X == XX:
    print(":(")
else:
    print(math.ceil(N/1.08))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#N = N//1.08

i=1
X=0

while 1:
   X = math.floor(i*1.08)
   if i > N:
      print (":)")
      break
   if X == N:
      print (i)
      break

   i = i + 1

#print (N)
#print ('{:.0f}'.format(N))

Submission status: Wrong Answer

Solution code:
from math import floor,ceil

N = int(input())
t = int(N/1.08)
if N == floor(t*1.08):
  print(t)
else:
  print(":(")

Submission status: Wrong Answer

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

#整数の入力
N = int(input())
X1 = int(N /1.08)

if(X1*1.08 == N):
    print(X1)
elif((X1+1)*1.08 == N):
    print(X1+1)

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
IN = list(map(int, input().split()))
N = IN[0]

price = round(N/1.08)
price1 = (int)(1.08 * price)

if N == price1:
    print(price1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
from math import ceil
N = int(input())
n = ceil(N / 1.08)
if round(n*1.08) == N:
    print(n)
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:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
# if math.floor(predict_price1 * 1.08)  == N:
#     print(N *100// 108)
if math.floor(predict_price2 * 1.08) == N:
    print(math.floor(N *100/ 108))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
s =int(input())
if s % 25 == 0 or s % 25 == 13:
    print(':(')
else:
    print((-s * 25 // 27) * (-1))

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
x = n/1.08
y = (n+1)/1.08
if x.is_integer() == True:
    print(x)
#elif y.is_integer() == True:
#    print(":(")
elif math.floor(y) - math.floor(x) >= 1 and math.floor(y) - math.floor(x) <2: 
    print(math.ceil(x))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = round(N/1.08)
import math
Y = math.floor(X*1.08)
if Y == N:
    print(X)
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:
import math

n = int(input())

x = round(n/1.08)

xx =n/1.08
y =x*1.08

if xx.is_integer():
    if n == math.floor(y):
        print(int(x))
    else:
        print(":(")
else:
    if n == math.floor(y):
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
import math
if math.floor(N*(100/108))<(float((N+1)*(100/108))):
    print(math.floor(float((N+1)*(100/108))))
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
# if math.floor(predict_price1 * 1.08)  == N:
#     print(N *100// 108)
if math.floor(predict_price2 * 1.08) == N:
    print(N *100// 108)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = round(n/1.08)

xx =n/1.08
y =x*1.08

if xx.is_integer() and n == math.floor(y):
    print(int(xx))
else:
    if n == math.floor(y):
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
s =int(input())
if s % 25 == 0 or s % 25 == 13:
    print(':(')
else:
    print(-s * 25 // 27 * (-1))

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
if math.floor(predict_price1 * 1.08)  == N:
    print(N *100// 108)
# elif math.floor(predict_price2 * 1.08) == N:
#     print(N *100// 108)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
from math import floor
N = int(input())
n = round(N / 1.08)
if floor(n*1.08) == N:
    print(n)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
if math.floor(predict_price1 * 1.08)  == N:
    print(N *100// 108)
elif math.floor(predict_price2 * 1.08) == N:
    print(N *100// 108)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
input_ = int(input())

ex_ = input_ / (1.08)

if (int(round(ex_) * 1.08) == input_):
  print(round(ex_))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math
from decimal import *

N = input()

N1 = Decimal(int(N) / 1.08).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
N2 = Decimal(int(N1) * 1.08).quantize(Decimal('0'), rounding=ROUND_HALF_UP)

if N == N2:
  print(N1)
else:
  print(":)")

Submission status: Wrong Answer

Solution code:
n = int(input())
result = ":("
for i in range(-49,50):
  a = n * 100 + i
  if a % 108 == 0:
    result = int(a/108)
    break
print(result)

Submission status: Wrong Answer

Solution code:
def my_index(l, x, default=False):
    if x in l:
        return l.index(x)
    else:
        return default

ans = []

num = int(input())

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

print(my_index(ans,num-1,":("))

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
x = n/1.08
y = (n+1)/1.08
if x.is_integer() == True:
    print(x)
#elif y.is_integer() == True:
#    print(":(")
elif math.floor(y) - math.floor(x) >= 1:
    print(math.ceil(x))
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
x = n/1.08
y = (n+1)/1.08
if x.is_integer() == True:
    print(x)
elif y.is_integer() == True:
    print(":(")
elif math.floor(y) - math.floor(x) >= 1:
    print(math.ceil(x))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if (n >= 1 and n <= 50000):
  x = n/1.08

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
x = n/1.08
y = (n+1)/1.08
if x.is_integer() == True:
    print(x)
elif y.is_integer() == True:
    print(":(")
elif math.floor(y) - math.floor(x) >= 1:
    print(math.floor(y))
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
if math.floor(predict_price1 * 1.08)  != N:
    print(":(")
elif math.floor(predict_price2 * 1.08) != N:
    print(":(")   
else:
    print(N *100// 108)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
zei = 1.08

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

if (is_integer_num(n/zei)):
    print(round(n/zei))
else:
    if(round(math.modf(n/zei)[0])):
        print(round(n/zei))
    else:
        print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

x = n/1.08

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

Submission status: Wrong Answer

Solution code:
N=int(input())

if N/1.08-int(N/1.08) == 0:
    print(int(N/1.08))
else:
    print(':)')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = round(n/1.08)

xx =n/1.08
y =x*1.08

if xx.is_integer():
    print(int(xx))
else:
    if n == math.floor(y):
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

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

Solution code:
import math

N = int(input())

predict_price1 = math.floor(N * 100 / 108)  # 整数で計算,切り捨て処理
predict_price2 = math.ceil(N * 100 / 108)  # 整数で計算,切り上げ処理
if predict_price1 * 1.08  != N:
    print("1")
elif predict_price2 * 1.08 != N:
    print("1")   
else:
    print(N *100// 108)

Submission status: Wrong Answer

Solution code:
n=input()
n=int(n)
import math
x1=n/1.08

a=math.floor(round(x1)*1.08)
if n==a:
	print(round(x1))
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = round(n/1.08,2)

xx =n/1.08
y =x*1.08

if xx.is_integer():
    print(int(n/1.08))
else:
    if n==math.floor(y):
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = round(n/1.08,1)

xx =n/1.08
y =x*1.08

if xx.is_integer():
    print(int(n/1.08))
else:
    if n==math.floor(y):
        print(int(x))
    else:
        print(":(")