Problem:


Score: 200 points

Problem Statement

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

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

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

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

Constraints

1 \leq N \leq 50000

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

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

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

If no value could be X, print :(.

Sample Input 1

432

Sample Output 1

400

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

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

Sample Input 2

1079

Sample Output 2

:(

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

Sample Input 3

1001

Sample Output 3

927

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



Sample input:
432


Sample output:
400

Submission status: Wrong Answer

Solution code:
N = int(input())

X = N / 1.08
if X.is_integer():
    print(int(X))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
X = int(input())
ans = X//1.08
if int(ans*1.08) == X:
  print(ans)
elif int((ans+1)*1.08) == X:
  print(ans+1)
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = int(input())

for x in range(N,1,-1):
    val = int(x * 1.08)
    if val == N:
        print(x)
        exit()

print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
if n == 1:
    print(1)
    exit()
for i in range(n):
    if (i *108)//100 ==  n:
        print(i)
        exit()
print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
N = int(input())
S = int(N / 1.08)
if S * 1.08 < N or S * 1.08 >= N + 1:
  print(":(")
else:
  print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
a=math.ceil(N/(1.08))
t=0
for i in range(a,N):
    if math.floor(i*1.08)==N:
        print(i)
        t=t+1
    else:
        print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
a=math.ceil(N/(1.08))
b=math.floor((N+1)/(1.08))
if (a>b) or (a==b and (N+1)//(1.08)==0) :
    print(':(')
else:
    print(a)

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
a=math.ceil(N/(1.08))
b=math.floor((N+1)/(1.08))
if a>b:
    print(':(')
else:
    print(a)

Submission status: Wrong Answer

Solution code:
import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
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)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7
import math
n = I()

# N円払った
# 8パーセントの消費税がかかる
# 税抜き価格xを忘れたので、求めたい。
# xは整数とする。
# あり得る価格のうち一つを出力せよ。ただし考えられるものが存在しない場合はその旨を報告せよ。

# 普通に考えたら、n / 1.08が原価
# ただし、消費税は切り捨てとなる点に注意が必要。

x = n / 1.08
c_x = math.ceil(x)

f_n = math.floor(c_x * 1.08)

if f_n == n:
    print(f_n)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
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)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7
import math
n = I()

# N円払った
# 8パーセントの消費税がかかる
# 税抜き価格xを忘れたので、求めたい。
# xは整数とする。
# あり得る価格のうち一つを出力せよ。ただし考えられるものが存在しない場合はその旨を報告せよ。

# 普通に考えたら、n / 1.08が原価
# ただし、消費税は切り捨てとなる点に注意が必要。

x = n / 1.08
c_x = math.ceil(x)
f_x = math.floor(x)

c_n = math.floor(c_x * 1.08)
f_n = math.floor(f_x * 1.08)

if c_n == n:
    print(c_n)
elif f_n == n:
    print(f_n)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
from decimal import Decimal
N = int(input())
a = Decimal('1.08')
for x in range(N):
    if int(x*a) == N:
        print(x)
        exit()

print(':(')

Submission status: Wrong Answer

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

print(':(')

Submission status: Wrong Answer

Solution code:
N = float(input())
raw = N / 1.08
check = round(raw) * 1.08
if (check - N) >= 0:
  print(round(raw))
else :
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
rate = 1.08
api  = round(n / rate)
api2 = int(n / rate)
if n == int(api * rate):
    print(api)
elif n == int(api2 * rate):
    print(api2)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
rate = 1.08
api  = round(n / rate)
api2 = round(n / rate)
if n == int(api * rate):
    print(api)
elif n == int(api2 * rate):
    print(api2)
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
print(math.ceil(n / 1.08))

Submission status: Wrong Answer

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

n = int(input())

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

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

Submission status: Wrong Answer

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

n = int(input())

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

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

Submission status: Wrong Answer

Solution code:
#
# smbc2019 b
#
import sys
from io import StringIO
import unittest
import math


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """432"""
        output = """400"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1079"""
        output = """:("""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """1001"""
        output = """927"""
        self.assertIO(input, output)


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

    for x in range(1, N):
        if math.floor(x*1.08) == N:
            print(x)
            break
    else:
        print(":(")


if __name__ == "__main__":
    # unittest.main()
    resolve()

Submission status: Wrong Answer

Solution code:
n = int(input())

r = n % 27
if r == 13 or r == 26:
    print(':)')
elif r ==0:
    x = int(100*n/108)
    print(x)
else:
    for i in range(1, 25):
        if 1.08*(i-1) < r <= 1.08*i:
            break
    x = int(100*(n - i)/108) + i
    print(x)

Submission status: Wrong Answer

Solution code:
N=int(input())

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

if all(int(i*1.08)!=N for i in range(N))==True:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(N):
    if int(i*1.08)==N:
        print(i)
        break

if all(int(i*1.08)!=N for i in range(N))==True:
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())

for i in range(N):
    if int(i*1.08)==N:
        print(i)
        break

if all(int(i*1.08)!=N for i in range(N))==True:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

if all(int(i*1.08)!=N for i in range(N))==True:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

ans_bool = False
ans_num = 0

for i in range(0, n):
    if math.floor(i * 1.08) == n:
        ans_bool = True
        ans_num = i
    else:
        pass
if ans_bool:
    print(ans_num)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
# 三井住友信託銀行プログラミングコンテスト2019: B – Tax Rate
N = int(input())

X = int(N / 1.08)
X_min = int(X * 1.08)
X_max = int((X + 1) * 1.08)

print(X, X_min, X_max)

if X_min == N:
    print(X)
elif X_max == N:
    print(X + 1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
can = False
for i in range(1, n + 1):
    if(i * 1.08 == n):
        print(i)
        can = True
        break
if(can == False):
    print(":(")

Submission status: Wrong Answer

Solution code:
x = int(input())

b = x//1.08
x1 = int(b*1.08)
x2 = int((b+1)*1.08)

if x1 == x:
  print(b)
elif x2 == x:
  print(b+1)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
x = int(input())

b = x//1.08
x1 = int(b*1.08)
x2 = int((b+1)*1.08)

if x1 == x:
  print(b)
elif x2 == x:
  print(b+1)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
from sys import stdin
from math import ceil, floor
n=int(stdin.readline().rstrip())
min_ = n/1.08
max_ = (n+1)/1.08
if ceil(min_) == floor(max_):
    print(ceil(min_))
else:
    print(":(")

Submission status: Wrong Answer

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

Solution code:
N = int(input())
 
ans = ":("

for X in range(N-1):
  if N+1 > X * 1.08 >= N:
    ans = X
    break
  elif X * 1.08 >= N+1:
    break
  else:
    continue
    
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
 
for X in range(N-1):
  if N+1 > X * 1.08 > N:
    print(X)
    break
  elif X * 1.08 > N+1:
    break
print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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+1> y*1.08 > N:
      print(y)
      break
    else:
      print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
 
x = N // 1.08
 
if x*1.08 < N or x*1.08 > N+1:
  print(":(")
else:
  print(x)

Submission status: Wrong Answer

Solution code:
N = int(input())

x = N // 1.08

if x*1.08 < N:
  print(":(")
else:
  print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
import math

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

o_int = math.floor(o)

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

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

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

o_int = math.floor(o)


print(math.floor(o_int * 1.08))


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

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

if int(math.ceil(n/1.08)*1.08) == n or int(math.floor(n/1.08)*1.08) == n:
    print(round(n/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
n = float(input())
m_low = math.ceil(n / 1.08)
m_high = math.floor((n+1)/1.08)
if m_low > m_high:
  print(':(')
else:
  print(m_low)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while n < N:
    if int(n * 1.08) == N:
        print(n)
        exit()

    n += 1

print(':(')

Submission status: Wrong Answer

Solution code:
a=int(input())
b=0
for i in range(a):
  c=i
  c+=(i*8)//100
  if c==a:
    b=i
print(":("if b==0 else b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())


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

print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(N-1):
    X = i * 1.08
    if int(X) == N:
        print(i)
        exit()

print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n=int(input())

num=round(n/1.08)

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

Submission status: Wrong Answer

Solution code:
n=int(input())

num=n//1.08

if num*1.08==n:
  print(num)
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(1,50000+1):
    z=i*1.08
    if n<=z<(n+1):
        ans=z
        break
if ans==0:
    print(":(")
else:
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
import math
n=int(input())
x=int(n/1.08)
if(math.floor(1.08*x)==n):
    print(x)
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
x=int(n/1.08)
if(n*100-round(1.08*x*100)<1):
    print(x)
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
x = n/1.08
x1, x2 = math.floor( x ), math.ceil( x )
print(x1, x2)

if n == math.floor( x1 * 1.08 ) :
  print(x1)
elif n == math.floor( x2 * 1.08 ):
  print(x2)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import sys
import itertools
# import numpy as np
import time
import math
import heapq
from collections import defaultdict
from collections import Counter
sys.setrecursionlimit(10 ** 7)
 
INF = 10 ** 18
MOD = 10 ** 9 + 7
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

# map(int, input().split())

N = int(input())
for x in range(N):
    val = x * 108
    val -= val % 100
    if val == N * 100:
        print(x)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
import itertools
# import numpy as np
import time
import math
import heapq
from collections import defaultdict
from collections import Counter
sys.setrecursionlimit(10 ** 7)
 
INF = 10 ** 18
MOD = 10 ** 9 + 7
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

# map(int, input().split())

N = int(input())
for x in range(N):
    if math.floor(x * 1.08) == N:
        print(x)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
found = False
for y in range(n):
    if n == math.floor(y*1.08):
        print(y)
        found = True
        break
if (found == False):
    print(":(")

Submission status: Wrong Answer

Solution code:
#B - Tax Rate 
import math
N = int(input())

result = ':('
for i in range(1,N):
    if math.floor(i * 1.08) == N:#小数点以下切り捨て
        result = i
print(result)

Submission status: Wrong Answer

Solution code:
#B - Tax Rate 
import math
N = int(input())

result = ':('
for i in range(N):
    if math.floor(i * 1.08) == N:#小数点以下切り捨て
        result = i
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

N_ = round((N/1.08//1)*1.08//1)

if N == N_:
    print(N_)

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

N_ = round((N/1.08//1)*1.08//1)

if N == N_:
    print(round((N/1.08//1)))

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math


def solve():
    N = int(input())
    if round(math.ceil(N / 1.08) * 1.08) == N:
        print(math.ceil(N / 1.08))
    else:
        print(':(')


if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
import math


def solve():
    N = int(input())
    if math.floor(round(N / 1.08) * 1.08) == N:
        print(round(N / 1.08))
    else:
        print(':(')


if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
n =int(input())
a=n//108
B=n%108
if B<13:
    b=B
    print(100*a+b)
elif 14<=B<=25:
    b=B-1
    print(100*a+b)
elif 27<=B<=39:
    b=B-2
    print(100*a+b)
elif 41<=B<50:
    b=B-3
    print(100*a+b)
elif 54<=B<=66:
    b=B-4
    print(100*a+b)
elif 68<=B<75:
    b=B-5
    print(100*a+b)
elif 81<=B<=97:
    b=B-6
    print(100*a+b)
elif 98<=B<=106:
    b=B-7
    print(100*a+b)
else :
    print(":(")

Submission status: Wrong Answer

Solution code:
n=int(input())
a=n//108
B=n%108
if B<13:
    b=B
    print(100*a+b)
elif 14<=B<=25:
    b=B-1
    print(100*a+b)
elif 27<=B<=39:
    b=B-2
    print(100*a+b)
elif 41<=B<50:
    b=B-3
    print(100*a+b)
elif 54<=B<=66:
    b=B-4
    print(100*a+b)
elif 68<=B<75:
    b=B-5
    print(100*a+b)
elif 81<=B<=96:
    b=B-6
    print(100*a+b)
elif 95<=B<106:
    b=B-7
    print(100*a+b)
else :
    print(":(")

Submission status: Wrong Answer

Solution code:
n=int(input())
a=n//108
B=n%108
if B<13:
    b=B
elif 14<=B<24:
    b=B-1
    print(100*a+b)
elif 27<=B<38:
    b=B-2
    print(100*a+b)
elif 41<=B<50:
    b=B-3
    print(100*a+b)
elif 54<=B<63:
    b=B-4
    print(100*a+b)
elif 68<=B<75:
    b=B-5
    print(100*a+b)
elif 81<=B<88:
    b=B-6
    print(100*a+b)
elif 95<=B<100:
    b=B-7
    print(100*a+b)
else :
    print(":(")

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(50000):
  if i*108//100==N:
    print(i)
  else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
x=n/1.08
nn=x*1.08
if n<=nn<n+1:    
	print(math.ceil(x))
else:
  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
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:
import math
n = int(input())
price = math.floor(n / 1.08 )
if price * 1.08 == n:
    print(price)

else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
found = False

for i in range(n):
    x = int ( i * 1.08 )
    if x == n :
        print(i)
        found = True
        break

if not found:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def main():
    n = int(readline().rstrip())

    for i in range(50001):
        k = math.floor(i * 1.08)
        if n == k:
            print(i)
            break


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%1.08==0:
  print(n//1.08)
else:
  x_init=n//1.08 + 1
  x_n = int(1.08*x_init)
  if x_n ==n:
    print(x_init)
  else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import numpy

N = int(input())
X0 = N / 1.08
X1 = (N + 1) / 1.08

if numpy.floor(X0) * 1.08 == N:
    print(int(numpy.floor(X0)))
elif numpy.floor(X1) - numpy.floor(X0) == 0:
    print(':(')
else:
    print(int(numpy.floor(X0) + 1))

Submission status: Wrong Answer

Solution code:
import numpy

N = int(input())
X0 = N / 1.08
X1 = (N + 1) / 1.08

if numpy.floor(X1) - numpy.floor(X0) == 0:
    print(':(')
else:
    print(int(numpy.floor(X0) + 1))

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
A = N/1.08 
B = math.floor(A)
Ans = B*1.08
Ans2 = (B+1) * 1.08
if Ans == N:
  print(B)
elif Ans2 == N:
  print(B+1)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

from math import floor

n=ni()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = int(N / 2)
x = 0

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

if x == 0:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
a = int(N / 1.1)
for i in range(a - 1, N):
    if N == int(i * 1.08):
        print(i)

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN

N = int(input())

# if N < 13:
#   print(':(')

X = N / 1.08
X = Decimal(str(X)).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
X = int(X)

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN

N = int(input())

if N < 13:
  print(':(')

X = N / 1.08
X = Decimal(str(X)).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
X = int(X)

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