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:
import math

n = int(input())

ans = round(n * 100 / 108)
print(ans)

if n == math.floor(ans * 1.08):
  print(ans)
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
if ((N / 1.08) * 1.08) // 1 == N:
    print(round((N / 1.08)))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math
pay = int(input())
est_price = math.floor(pay/1.08)

#print(est_price)
if math.floor(est_price * 1.08) == pay:
  print(est_price)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
a = int(input())
x = a/1.08
if not x.is_integer():
    b = math.ceil(x)
    c = math.floor(x)
    if round(c*1.08) == a:
        print(c)
    elif round(b*1.08) == a:
        print(b)
    else:
        print(":(")
else:
    if round(x*1.08) == a:
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
m = 1.08*round(n/1.08)
#print(n-m)
if n - m  <= 0:
    print(round(n/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys
from decimal import Decimal, ROUND_HALF_UP
import math
input = sys.stdin.readline
#sys.setrecursionlimit(1e9)

def main():
    """code here"""
    N = int(input())
    x = Decimal(str(N / 1.08))
    x = x.quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    if math.floor(int(x)*1.08)==N:
        print(int(x))
    else:
        print(":(")
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
ans = -1
for x in range(N):
    if math.floor(x * 1.08) == N:
        ans = x
        break
print(ans if ans is not -1 else ':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
teika = input()
int_teika = int(teika)

int_motone = round(int_teika*100/108)
print(str(int_motone))

Submission status: Wrong Answer

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

inta = int(a)
if inta==a:
    print(inta)
elif inta==int(b):
    print(':(')
else:
    print(inta+1)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
ok = False
for i in range(n-1,0,-1):
    if math.ceil(i*1.08)==n:
        print(i)
        ok = True
        break
if ok==False:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input()) 

C = N / 1.08
if C.is_integer():
  print(int(C))
else:
  print(":)")

Submission status: Wrong Answer

Solution code:
# 2019/12/1

n=int(input())
res=round(n*100/108)
print(int(res) if int(res*1.08)==n else ':(')

Submission status: Wrong Answer

Solution code:
import math

def main():
    x = int(input())
    ans = 0

    for i in range(x):
        ans = math.floor(i * 1.08)
        if ans == x:
            print(i)
            return

    print(":(")

main()

Submission status: Wrong Answer

Solution code:
a = int(input())

b = a * 1.08

if type(b) is int:
    print(int(b))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

NN = math.floor(N / 1.08)

NNN = math.floor(NN*1.08)

if N == NNN:
    print(NN)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N =int(input())

count = 0

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

Submission status: Wrong Answer

Solution code:
TAX = 1.08
value = int(input())

row_cost = int(value / TAX)

flag = False
echo_cost = 0
if int(row_cost * TAX) == value:
    flag = True
    echo_cost = int(row_cost * TAX)
elif int((row_cost + 1) * TAX) == value:
    flag = True
    echo_cost = int((row_cost + 1) * TAX)

else :
    flag = False

if flag:
    print(echo_cost)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

a = int(round(N / 1.08))
b = N + 1
#print(a, b)

A = math.floor(a*1.08)
B = math.floor(b*1.08)
#print(A, B)

if A == N:
    print(a)
elif B == N:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from math import floor, ceil
N = int(input())
tmp = floor(N / 1.08)
tmp2 = ceil(N / 1.08)
flag = False
if floor(tmp * 1.08) == N:
    print(tmp)
elif floor(tmp2 * 1.08):
    print(tmp2)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys
from math import factorial
from fractions import Fraction
import heapq, bisect
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

n = INT()
n *= 100
res = n/108
hantei = int((res - n//108)*10)
if hantei <5 and hantei > 0:
    print(':(')
else:
    print(math.ceil(n//108))

Submission status: Wrong Answer

Solution code:
a = int(input())

print(int(a/1.08))

Submission status: Wrong Answer

Solution code:
N = int(input())

n1 = N / 1.08

if round(n1) == n1:
    print(n1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = round(a/1.08)
c = int(b*1.08)

if a == c:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a = int(input())

b = a * 1.08

if type(b) is int:
    print(b)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if math.floor(tmp * 1.08) == N:
    print(int(tmp))
else:
    print(":(")

Submission status: Wrong Answer

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

for i in range(50001):
    if N == math.floor(i * 1.08):
        print(i)
else:
    print(":(")

Submission status: Wrong Answer

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

X = N/1.08

if math.floor(round(X)*1.08) != N:
    print(':(')
else:
    print(round(X))

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(":(")
elif predict_price2 * 1.08 != N:
    print(":(")   
else:
    print(N *100// 108)

Submission status: Wrong Answer

Solution code:
from math import floor

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

    if floor(floor(n/1.08) * 1.08) == n:
        print(floor(n/1.08))
    elif 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())

f, i = math.modf(N / 1.08)
if 0 < f < 0.5:
    print(':(')
elif f >= 0.5:
    print(int(i+1))
else:
    print(int(i))

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
val = N / 1.08
val_min = math.floor(val)
val_max = val_min + 1
if (math.floor(val_min * 1.08) == N) or (math.floor(val_max * 1.08) == N):
    print(val_min)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if (1<=n) and (n<=50000):
  flg = False
  flgvalue = 0
  buf1 = int(n / 1.08)	#small
  buf2 = int(n / 1.07)	#large
  for i in range(buf1, buf2 + 1):
    buf3 = int(i * 1.08)
    if buf3 == n:
      flg = True
      break
  if flg:
    print(i)
  else:
    print(":(")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:

N=int(input())

def sol(n):
    for i in range(1,n):
        if(int(i*1.08)==n):
            return i
    return ":("

print(sol(N))

Submission status: Wrong Answer

Solution code:
import math
a = int(raw_input())

before = round(a/(1+0.08))

if round(math.floor(before + before*0.08)) == a:
  print(int(before))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math

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

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

xmin = N / 1.08
xmax = (N + 1) / 1.08
if xmin % 1.0 == 0.0:
	print(int(xmin))
elif xmax % 1.0 == 0.0:
	print(int(xmax))
else:
	if xmin // 1.0 == xmax // 1.0:
		print(":(")
	else:
		print(int(xmin // 1.0) + 1)

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
if (n+1)//1.08-n//1.08>0:
  print(n//1.08)
else:
  print(':(')

Submission status: Wrong Answer

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

if n == int(m*1.08+0.5):
  print(int(m))
else:
  print(':(')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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 sys
N = int(input())

for x in range(1, 50001):
    temp = x * 1.08

    if N <= temp < (N + 0.5):
        print(x)
        sys.exit()

print(":(")

Submission status: Wrong Answer

Solution code:
def main():
  N = int(input())
  X = 1
  
  for X in range(N):
    if int(X * 1.08) == N:
      return X
  return ':('  

print(main())

Submission status: Wrong Answer

Solution code:
n=int(input())
flag=0
a=float
for i in range(1,n):
    if int(i*1.08)==n:
        print(i)
        flag+=1
        break
if flag==0:
    print(":(")

Submission status: Wrong Answer

Solution code:
from sys import stdin
a = int(stdin.readline().rstrip())
b = 0
for i in range(a):
    if int(i * 1.08) == a:
        m = i
        b = 1
if b == 0:
    m = (':(')

print(m)

Submission status: Wrong Answer

Solution code:
TAX = 1.08
value = int(input())

row_cost = int(value / TAX)

flag = False
if int(row_cost * TAX) == value:
    flag = True

elif int((row_cost + 1) * TAX) == value:
    flag = True

else :
    flag = False

if flag:
    print(row_cost)
else:
    print(":(")
    print(row_cost)

Submission status: Wrong Answer

Solution code:
N = int(input())

for n in range(N):
    if int(n * 1.08) == N:
        print(n)
        exit()
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())
if math.floor(N / 1.08) == N / 1.08:
    print(math.floor(N / 1.08))
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:
import sys
from decimal import Decimal, ROUND_HALF_UP
input = sys.stdin.readline
#sys.setrecursionlimit(1e9)

def main():
    """code here"""
    N = int(input())
    x = Decimal(str(N / 1.08))
    x = x.quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    if round(int(x)*1.08)==N:
        print(int(x))
    else:
        print(":(")
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
paid = int(input())
price = paid/1.08

if abs(price-int(price)) < 0.001:
  print(int(price))
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:

N=int(input())

def sol(n):
    for i in range(int(n/2),n):
        if(int(i*1.08)==n):
            return i
    return ":("

print(sol(N))

Submission status: Wrong Answer

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

X = N / 1.08
if N % 1.08 >= 0.5:
    X = int(X) + 1
else:
    X = int(X)

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())


for i in range(N):
    if(N == int(i*1.08)):
        print(i)
        ans = True
        break
    else:
        ans = False

if(ans == False):
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

if a == n or b == n:
    print(int(ans))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

A = round(N * 100 / 108)

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
ans=0
for i in range(N):
  tmp=math.floor(i*1.08)
  if (tmp==N) :
    ans=i
    break

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

Submission status: Wrong Answer

Solution code:
from decimal import *
n=int(input())
ans=':('
for i in range(n):
  if i*Decimal('1.08')//1==n:
    ans=i
    break
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(n):
  if (i * 1.08) // 1 == n:
    print(i)
    break
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    for i in range(n):
        if int(i * 1.08) == n:
            print(i)
            break
    else:
        print(':(')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())
L = []

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

Submission status: Wrong Answer

Solution code:
import math
def main():
    x = int(input())
    x100 = x * 100
    if x100 % 108 == 0:
        return x100 // 108
    
    upper = int((x+1) * 100 / 108)
    lower = int(math.ceil(x/1.08)) 
    
    if upper == lower:
        if ((x+1)*100) % 108 == 0:
            return ":("
        else:
            return upper
    return lower

print(main())

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
x = int(N / 1.08)
for y in range(x, x + 3):
    p = int(1.08 * y)
    if p == N:
        print(p)
        exit(0)
print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
TAX = 1.08
value = int(input())

row_cost = int(value / TAX)

flag = False
if row_cost * TAX == value:
    flag = True

elif (row_cost + 1) * TAX == value:
    flag = True

else :
    flag = False

if flag:
    print(row_cost)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n=int(input())

p=math.floor(n*0.926)
for i in range(n//10):
    if n==math.floor(p*(1.08)):
        print(p)
        exit()
    p+=1
print(':(')

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    for i in range(n//2, n):
        if int(i * 1.08) == n:
            print(i)
            break
    else:
        print(':(')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
w = round(N / 1.08)
ans = int(w * 1.08)
if ans == N:
    print(w)
elif int(w + 1 * 1.08) == N:
    print(w + 1)
elif int(w - 1 * 1.08) == N:
    print(w - 1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

x = int(n / 1.08)

amari = n / 1.08 - x

if amari==0:
    print(x)
elif amari >=0.5:
    print(x+1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
x = int(input())

res = [False for i in range(x + 1)]
res[0] = True
for i in range(100, 106):
    if x < i:
        break
    res[i] = True

for i in range(106, x + 1):
    res[i] = res[i-100] or res[i-101] or res[i-102] or res[i-103] or res[i-104] or res[i-105]

if res[x]:
    print(1)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP
N = int(input())

X = N / 1.08
X = int((X+0.5)//1)

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

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:
import math
N=int(input())
tmp=N//1.08
if math.floor(tmp*1.08)==N:
	print(tmp)
elif math.floor((tmp+1)*1.08)==N:
  print(tmp+1)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
flg = False
flgvalue = 0
n = int(input())
buf1 = int(n / 1.08)	#small
buf2 = int(n / 1.07)	#large
for i in range(buf1, buf2 + 1):
  buf3 = int(i * 1.08)
  if buf3 == n:
    flg = True
    break
if flg:
  print(i)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from math import floor
N = int(input())
for t in range(1, N):
    if floor(t * 1.08) == N:
        print(t)
        exit()
    if floor(t * 1.08) > N:
      break
print(":(")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def tax(n) :
  x = n//1.08
  print(x)

Submission status: Wrong Answer

Solution code:
N = int(input())

n = round(N/1.08)

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

Submission status: Wrong Answer

Solution code:
n = int(input()) * 100
if n % 108 == 0:
    print(n // 108)
    exit(0)
print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n = int(input())
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:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

result = math.ceil(N / 1.08)

if result*1.08 == N:
   print(math.ceil(result) )
else:
   print(":(")

Submission status: Wrong Answer

Solution code:
import math
pay = int(input())
est_price = round(pay/1.08)

#print(est_price)
if math.floor(est_price * 1.08) == pay:
  print(est_price)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

s = int(n / 1.5)

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

print(':(')

Submission status: Wrong Answer

Solution code:
inf = float("inf")

n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = round(N / 1.08)
b = N / 1.08 - int(N / 1.08)
if b < 0.08 / 1.08 and 0 < b:
    print(":(")
else:
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:





from sys import exit


ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))



def main():
    n = ii()
    for i in range(n):
        if (i*108)//100 == n:
            print(i)
            exit()
    print(":(")


        


main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline

##### リストの 二分木検索 #####
# bisect_left(lists, 3)
# bisect_right(lists, 3)

##### プライオリティキュー #####
# heapq.heapify(a) #リストaのheap化
# heapq.heappush(a,x) #heap化されたリストaに要素xを追加
# heapq.heappop(a) #heap化されたリストaから最小値を削除＆その最小値を出力

# heapq.heappush(a, -x) #最大値を取り出す時は、pushする時にマイナスにして入れよう
# heapq.heappop(a) * (-1) #取り出す時は、-1を掛けて取り出すこと

##### タプルリストのソート #####
# sorted(ans) #(a, b) -> 1st : aの昇順, 2nd : bの昇順
# sorted(SP, key=lambda x:(x[0],-x[1])) #(a, b) -> 1st : aの昇順, 2nd : bの降順
# sorted(SP, key=lambda x:(-x[0],x[1])) #(a, b) -> 1st : aの降順, 2nd : bの昇順
# sorted(SP, key=lambda x:(-x[0],-x[1])) #(a, b) -> 1st : aの降順, 2nd : bの降順

# sorted(SP, key=lambda x:(x[1])) #(a, b) -> 1st : bの昇順
# sorted(SP, key=lambda x:(-x[1])) #(a, b) -> 1st : bの降順

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))

def main():
	N = inputInt()

	ans = -(-N // 1.08)
	ans2 = N / 1.08

	#print(N/1.08)

	if isinstance(ans2, int):
		print(int(ans))
	else:
		tmp = ans2 - int(ans2)
		if tmp < 0.1:
			print(":(")
		else:
			print(int(ans))







if __name__ == "__main__":
	main()

Submission status: Wrong Answer

Solution code:
import math

s = input()
s = int(s)

x = s / 1.08
ans = math.ceil(x)
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
memo=[]
for i in range(1,n+1):
  memo.append(int(i*1.08))

if n in memo:
  print(memo.index(n)+1)
else:
  print("a")

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%27==13 or N%27==26:
  print(':(')
else:
  print(int((N*50)//54))

Submission status: Wrong Answer

Solution code:
from math import floor

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

    ans = round(n/1.08)

    if floor(ans * 1.08) == n:
        print(ans)
    else:
        print(':(')

Submission status: Wrong Answer

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

if N % 9 == 8:
  print(':(')
else:
  Ans = N * 100 / 108
  A = math.ceil(Ans)
  print(A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

inta = int(a)
if inta==a:
    print(inta)
elif b<inta+1:
    print(':(')
else:
    print(inta+1)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 27 == 13 or n % 27 == 26:
    print(':(')
else:
    print(int(n / 1.08) + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans if ans is not -1 else ':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

for i in range(int(0.9*n), n):
  if (i * 1.08) // 1 == n:
    print(i)
    break
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
x=int(n/1.08)
y=int((n+0.5)/1.08)
if int(x*1.08)==n:
  print(x)
elif int(y*1.08)==n:
  print(y)
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()
  elif int(i*1.08)<N:
    i+=1
  else:
    print(":(")
    exit()

Submission status: Wrong Answer

Solution code:
import sys
#ossan
n = int(input())
for i in range(1, n+1):
	if round(i*1.08) == n:
		print(i)
		sys.exit()
print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
v1=int(N/1.08)
v2=int((N+1)/1.08)
if v2*1.08<N:
  print(':(')
else:
  print(v2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
  N = int(input())
  X = 0
  
  for X in range(N):
    if int(X * 1.08) == N:
      return X
  return ':('  

print(main())

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

for i in range(0, N):
    if i + math.floor(i * 0.08) == N:
        print(i)
        break
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math


input_line1=float(input())
tax_rate=1.08

x=round(input_line1/tax_rate)
if math.floor(x*1.08) < input_line1:
  print (':(')
else:
  print (x)

Submission status: Wrong Answer

Solution code:
def f():
    n = int(input())
    a = n/1.08
    if a == int(a):
        print(a)
        return
    x = int(a) + 1
    if x >= ((n+1)/1.08):
        print(':(')
    else:
        print(x)

f()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0
for i in range(1, N):
    if int(i * 1.08) < N:
        continue
    elif int(i * 1.08) == N:
        ans = i
        break
    else:
        break

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

Submission status: Wrong Answer

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

print(ans if ans is not -1 else ':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from collections import defaultdict
from copy import deepcopy
import itertools
input = sys.stdin.readline
# 文字列の場合は普通のinput()を使うか下を使う
# input = sys.stdin.readline().rstrip()

N = int(input())
if int(N / 1.08) == N / 1.08:
    print(int(N / 1.08))
else:
    X = int((N + 1) / 1.08)
    Y = N / 1.08
    if Y < X:
        print(X)
    else:
        print(':(' )

Submission status: Wrong Answer

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