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())
X = N/1.08
Y = N//1.08
Z = X-Y

if Z >= 0.5:
    print(math.floor(X))
else :
    print(':(')

Submission status: Wrong Answer

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

N =int(input())

X =N%1.08

if Decimal(str(X)).quantize(Decimal('0'), rounding=ROUND_HALF_UP) ==0:
    print(":(")
else:
    print(math.ceil(N/1.08))

Submission status: Wrong Answer

Solution code:
input_ = int(input())

ex_ = input_ / (1.08)

if (ex_ - int(ex_)) > 0.1:
  print(round(ex_))
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import math

a =int(input())
b = a/1.08
b = np.round(b,decimals=0)
c = b*1.08
c = int(math.floor(c))

if a == c:
    print(int(b))
else:
    print(':(')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math


def inputs():
    return [int(s) for s in input().split()]


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

    v = math.ceil(N / 1.08)
    print(v)
    print(math.floor(v * 1.08))
    if math.floor(v * 1.08) == N:
        return v
    else:
        return ':('


if __name__ == '__main__':
    print(main())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input().strip()
while(len(n)==0):
  n=input().strip()
n=int(n)
a=round(n/1.08)
if(int(a*1.08)==n):
  print(a)
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
n=int(n)
import math
x1=n/1.08
x2=n//1.08
a=math.floor(x1*1.08)

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

Submission status: Wrong Answer

Solution code:
from math import floor, ceil


def my_round(val, digit=0):
    p = 10 ** digit
    return (val * p * 2 + 1) // 2 / p


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

    if floor(floor(n/1.08) * 1.08) == n:
        print(floor(n/1.08))
    elif floor(my_round(n/1.08) * 1.08) == n:
        print(my_round(n/1.08))
    else:
        print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

a = N/1.08
A = N//1.08


a1 = round(a)

a2 = int(a1*1.08)
A2 = int(A*1.08)

if a2 == N:
    print(a1)
elif A2 == N:
    print(A2)
elif N == 1:
    print(1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
if ((N+1) % 27 == 0) or ((N+14) % 27 == 0):
    print(':(')
else:
    print(round(N//1.08))

Submission status: Wrong Answer

Solution code:
from math import floor, ceil


def my_round(val, digit=0):
    p = 10 ** digit
    return (val * p * 2 + 1) // 2 / p


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

    print(my_round(n/1.08))

    if floor(floor(n/1.08) * 1.08) == n:
        print(floor(n/1.08))
    elif floor(my_round(n/1.08) * 1.08) == n:
        print(my_round(n/1.08))
    else:
        print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
import math
for i in range(1,50000):
    z=i*1.08
    if (z-math.floor(z))>(math.ceil(z)-z):
        if math.ceil(z)==a:
            print(i)
    elif (z-math.floor(z))<(math.ceil(z)-z):
        if math.floor(z)==a:
            print(i)
    elif (z-math.floor(z))==(math.ceil(z)-z):
        if math.floor(z)==a or math.ceil(z)==a:
            print(i)
    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(n/1.08))
else:
    if n==math.floor(y):
        print(int(x))
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

a = N/1.08
A = N//1.08


a1 = round(a)

a2 = int(a1*1.08)
A2 = int(A*1.08)

if a2 == N:
    print(a1)
elif A2 == N:
    print(A2)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())
X = N/1.08
Y = N//1.08
Z = X-Y

if Z >= 0.5:
    print(Y)
else :
    print(':(')

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
X = math.floor(N / 1.08)
N2 = math.floor(X * 1.08)
X2 = math.floor(N2 / 1.08)

if X == X2:
    print(X)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

a = N/1.08

a1 = round(a)

a2 = int(a1*1.08)

if a2 == N:
    print(a1)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math
import sys
 
n = int(input())
 
start = math.floor(n // 1.1)
 
for m in range(0, n):
  ma = math.floor(m * 1.08)
  if ma == n:
    print(m)
    sys.exit(0)
  if ma > n:
    print(':(')
    sys.exit(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
f=0
for i in range(1,n):
    x = int(i*1.08)
    if x==n:
        f=1
        xx = i
        break

if f:
    print(xx)
else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = N / 1.08

if isinstance(ans, float) == True:
  print(int(ans))
elif isinstance(ans, int) == True:
  print(ans)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
L = []
for val in range(0,5001):
    L.append(int(val*1.08))

#print(L)

#ans = int(n/1.08)
ans = math.ceil(n/1.08)
if n in L:
    print(ans)
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x = n / 1.08

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

Submission status: Wrong Answer

Solution code:
import math
import sys
 
n = int(input())
 
start = math.floor(n // 1.1)
 
for m in range(start, n):
  ma = math.floor(m * 1.08)
  if ma == n:
    print(m)
    sys.exit(0)
  if ma > n:
    print(':(')
    sys.exit(0)

Submission status: Wrong Answer

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

x = round(n/1.08)
xx = n/1.08
y =x*1.08
print(y)
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())
X = N/1.08
Y = N//1.08
Z = X-Y

if Z >= 0.5:
    print(round(X))
else :
    print(':(')

Submission status: Wrong Answer

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

x = round(n / 1.08)

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

Submission status: Wrong Answer

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

ans = N / 1.08

if isinstance(ans, float) == True:
  print(int(ans) + 1)
elif isinstance(ans, int) == True:
  print(ans)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
import sys

#+++++
		
def main():
	n=int(input())
	for i in range(n):
		if int(i*1.08) == n:
			return i
	print(':(')
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
L = []
for val in range(0,5001):
    L.append(int(val*1.08))

#print(L)

ans = int(n/1.08)
#tmp = math.ceil(ans * 1.08)
if n in L:
    print(ans)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
up = math.ceil(N / 1.08)
down = math.floor(N / 1.08)


up_res1 = int(up * 1.08)
up_res2 = math.ceil(up * 1.08)
down_res1 = int(down * 1.08)
down_res2 = math.ceil(down * 1.08)


if N == up_res1 or N == up_res2:
    print(up)

elif N == down_res2 or N == down_res1:
    print(down)

else:
    print(":(")

Submission status: Wrong Answer

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

while X<N:
    check=int(X//1)*1.08
    if check//1==N:
        print(int(X//1))
        count=1
        break
    count=0
    X=X+1
if count!=1:
    print(":(")

Submission status: Wrong Answer

Solution code:
s = int(input())

te = s % 1.08
if te < 0.1:
    print(':(')
else:
    x = s / 1.08
    x = int(x)
    print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

a = int(input())
b = str(a/1.08)
c,d =b.split('.')

if len(d)>1:
    if d[0]== '0':
        print(':(')
    else:
        b = float(b)
        print(int(np.round(b, decimals=0)))
else:
    b = float(b)
    print(int(np.round(b, decimals=0)))

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

Submission status: Wrong Answer

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

x = round(n/1.08)

y =x*1.08

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

Submission status: Wrong Answer

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

if(n%1.08>0 and n%1.08<0.1):
    print(":(")
else:
    print(math.floor(n/1.08))

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)
            break
    else:
        print(":(")

main()

Submission status: Wrong Answer

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

x = n / 1.08

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

Submission status: Wrong Answer

Solution code:
s = input()
s = int(s)

if s % 1.08 < 0.1:
  print(':(')
else:
  x = s // 1.08
  x = int(x)
  print(x)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = n/1.08
k = int(a)
if k+1 > a >= k+0.5:
  k = k+1
  if int(k*1.08) != n:
    print(':(')
  else:
    print(k)
else:
  if int(k*1.08) != n:
    print(':(')
  else:
    print(k)

Submission status: Wrong Answer

Solution code:
N = int(input())
if ((N+1) %27 == 0) or ((N+14) % 27 == 0):
    print(':(')
else:
    print(int(N/1.08))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x = n / 1.08

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

Submission status: Wrong Answer

Solution code:
s = 1000
if s % 1.08 < 0.1:
  print(':(')
else:
  x = s // 1.08
  x = int(x)
  print(x)

Submission status: Wrong Answer

Solution code:
n = int(input())#税込み
x = int(-(-n//1.08))#税抜き

if n%27 == 13 or n%27 == 26:
    print("違うよ")
else:
    print(x)

Submission status: Wrong Answer

Solution code:
N = int(input())
if ((N+1) %27 == 0) or ((N+14) % 27 == 0):
    print(':(')
else:
    print(round(N/1.08))

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = round(n/1.08)

m = math.floor(x * 1.08)

if n != m:
    print(":(")
else:
    print(x)

Submission status: Wrong Answer

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

if A >= 3000:
    print(1)
else:
    a = [100,101,102,103,104,105]
    N = A//100
    dp = np.array([np.array([0 for i in range(A+1)]) for j in range(N+1)])
    dp[0][0] = 1

    for i in range(N):
        for j in np.where(dp[i] == 1)[0]:
        #for j in range(A+1):
           # if dp[i][j] == 1:
            dp[i+1][j+100:j+106] = 1
    print(dp[N][A])

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = n/1.08

x = round(x)

print(x)

m = math.floor(x * 1.08)

print(m)

if n != m:
    print(":(")
else:
    print(x)

Submission status: Wrong Answer

Solution code:
import math
 
n = int(input())
answers = []

if n == 0:
  print(':(')
else:
  for i in range(1, n):
    if math.floor(i * 1.08) == n:
      answers.append(i)
  if len(answers) == 0:
    print(':(')
  elif len(answers) == 1:
    print(answers[0])
  else:
    print(answers[len(answers) // 2])

Submission status: Wrong Answer

Solution code:
n = int(input())

i = int(n * 0.9)
cnt = 0
while i < n*0.94:
  if int(i*1.08) == n:
    print(i)
    cnt = 1
    break
  else:
    i += 1
if cnt == 0:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

x = n / 1.08

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

Submission status: Wrong Answer

Solution code:
N = int(input())
n = int(N/1.08)
if (N // 1.08) == ((N+1) //1.08) or (int(n * 1.08) < N and N < int((n+1) * 1.08)):
    print(':(')
else:
    print((N//1.08))

Submission status: Wrong Answer

Solution code:
N=int(input())
N_list=[]
for i in range(N+100):
    x=int(i*1.08)
    N_list.append(x)
if N in N_list :
    print(int(N/1.08))
else:
    print(":(")

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(":(")
    return

main()

Submission status: Wrong Answer

Solution code:
N=int(input())
N_list=[]
for i in range(N+100):
    x=int(i*1.08)
    N_list.append(x)
print(N_list)
if N in N_list :
    print(int(N/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys

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

    if(N*100%108==0):
        print(N*100//108)
        sys.exit()

    else:
        print(":()")

main()

Submission status: Wrong Answer

Solution code:
n = int(input())
a = ((n + 1) % 27)
b = ((n + 14) % 27)

if n == 13 or n == 26:
    print(":(")
elif a == 0 or b == 0:
    print(":(")
else:
    print(round(n/1.08))

Submission status: Wrong Answer

Solution code:
N = int(input())
n = int(N/1.08)
if (N // 1.08) == ((N+1) //1.08) or int(n * 1.08) < N and N < int((n+1) * 1.08):
    print(':(')
else:
    print((N//1.08))

Submission status: Wrong Answer

Solution code:
import math
from math import ceil, floor
N = int(input())
X = ceil(float(N/(1.08)))
M = floor(X*1.08)

if M!=N:
    print(":(")
else:
    print("x")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
if math.floor((n//1.08+1)*1.08)==n:
    print(int(n//1.08+1))
else:
    print(':()')

Submission status: Wrong Answer

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

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

#四捨五入
X1 = int((X1*2+1)/2)

val = int((X1 * 1.08))

if(val != N):
    print(":(")
else:
    print(X1)

Submission status: Wrong Answer

Solution code:
N = int(input())
n = int(N/1.08)
if (N // 1.08) == ((N+1) //1.08) or int(n * 1.08) != N and N!=int( (n+1) * 1.08):
    print(':(')
else:
    print((N//1.08))

Submission status: Wrong Answer

Solution code:
import math
from math import floor
N = int(input())
X = floor(float(N/(1.08)))
M = floor(X*1.08)

if M!=N:
    print(":(")
else:
    print("x")

Submission status: Wrong Answer

Solution code:
n = int(input())

x = n/1.08

if int(x) == round(x):
  print(':(')
else:
  print(round(x))

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
X = N / 1.08
min_x = np.floor(X)
max_x = np.ceil(X)
if max_x != min_x:
    for i in range(int(min_x), int(max_x+1)):
        if int(i * 1.08) == N:
            print(i)
            break
        elif i == max_x:
            print(':(')
        
else:
    print(min_x)

Submission status: Wrong Answer

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

x = s / 1.08

rx = round(x)
tashikame = rx * 1.08
tashikames = math.floor(tashikame)
tashikames = int(tashikames)
if s != tashikames:
    print(':(')
else:
    x = int(x)
    print(x)

Submission status: Wrong Answer

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

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

    tax_free = round(N / 1.08)
    result = tax_free if int(tax_free*1.08) == N else ":("
    print(result)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
Answer = ':('
if N < 200:
  for i in range(N):
    if math.floor(i*1.08)==N:
      Answer = i
else:
  for i in range(0,N+1):
    if math.floor(i*1.08)==N:
      Answer = i
print(Answer)

Submission status: Wrong Answer

Solution code:
# -*- Coding: utf-8 -*-
import sys
i=0
zeibiki=[0]*5000
zeiari=[0]*5000

for i in range(5000):
    zeibiki[i]=int((i+1))
for i in range(5000):
    zeiari[i]=int((i+1)*1.08)

#print(zeibiki[4999])
N=int(input())
#x=N/1.08
#print(int(x))
#NN=x*1.08
#print(NN)
i=0
for i in range(5000):
    if N==zeiari[i]:
        print(zeibiki[i])
        sys.exit()
    else:
        pass
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
a = ((n + 1) % 27)
b = ((n + 14) % 27)

if n < 13:
    print(":(")
elif a == 0 or b == 0:
    print(":(")
else:
    print(round(n/1.08))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
from math import floor
N = int(input())
X = floor(float(N/(1.08)))
M = floor(X*1.08)

if M==N:
    print(X)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

p = round(N / 1.08) #税抜き価格計算
o = int(p * 1.08) #税込み価格計算

if o == N:
    print(int(p))

Submission status: Wrong Answer

Solution code:
n=int(input())

x=n//1.08

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

Submission status: Wrong Answer

Solution code:
import math
n = float(input())
k= n/1.08
m = round(k)
l = math.floor(k)

if k.is_integer():
    print(m)
else:
    if m == l:
        print(":(")
    else:
        print(m)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
 
n = int(input())
answers = []

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

Submission status: Wrong Answer

Solution code:
amount = int(input())
before_tax = int(amount / 1.08)
after_tax = before_tax + 1
print(after_tax, before_tax)
if int(after_tax * 1.08) == amount:
  print(int(after_tax))
elif int(before_tax * 1.08) == amount: 
  print(int(before_tax))
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
n=int(input())
m_round=lambda x:(x*2+1)//2
x1=n/1.080
x2=m_round(x1)
y1=x2*1.080
y2=math.floor(y1)
if((y1-y2) >=0.5 or n != y2):
  print(":(")
elif(n == y2):
  print(int(x2))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())
d = 100/108.0 * a
if a/d == 1.08:
  print(int(d))
else:
  print(":(")

Submission status: Wrong Answer

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

  
print(':(')

Submission status: Wrong Answer

Solution code:
import math
from math import floor
N = int(input())
X = floor(float(N/(1.08)))

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

Submission status: Wrong Answer

Solution code:
import math
import sys

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

Submission status: Wrong Answer

Solution code:
N=int(input())
N_list=[]
for i in range(N):
    x=int(i*1.08)
    N_list.append(x)
if N in N_list :
    print(int(N/1.08))
else:
    print(":(")

Submission status: Wrong Answer

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

x1=n/1.08
x2=n//1.08
# print(x1,x2)
if x1==x2:
	print(x1)
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000000)
INF = 1<<32


def solve(N: int):
    
    for i in range(1, 46267):
        if i*1.08//1 == N:
            print(i)
            exit()
        
    print(':(')



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
Answer = ':('
if N < 200:
  for i in range(N):
    if math.floor(i*1.08)==N:
      Answer = i
else:
  for i in range(N//1200,N+10000):
    if math.floor(i*1.08)==N:
      Answer = i
print(Answer)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

X = int(N // 1.08)
a = N*100 % 108
x = X+1
if a == 0:
    print(X)

elif x*1.08 >= N and x*1.08 < N+1:
    print(x)

elif X*1.08 >= N and X*1.08 < N+1:
    print(X)
    
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
X = N / 1.08
min_x = np.floor(X)
max_x = np.ceil(X)
if max_x != min_x:
    for i in range(int(min_x), int(max_x+1)):
        if int(i * 1.08) == N:
            print(i)
        else:
            print(':(')
            break
else:
    print(min_x)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N=int(input())
import math
N1=round(N/1.08)
N11=math.floor(N/1.08)
N2=math.floor(N1*1.08)
N22=math.floor(N11*1.08)
if N==N2:
    print(N1)
elif N==N22:
    print(N11)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 0

for i in range(100):
    val = 100 * n + i
    print(val, i)
    if val % 108 == 0:
        ans = val // 108
        break
    else:
        pass

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

X = int(N // 1.08)
a = N*100 % 108
x = X+1
if a == 0:
    print(X)

elif x*1.08 >= N and x*1.08 < N+1:
    print(x)
    
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import math
s = input().split(" ")
s = [int(s[i]) for i in range(len(s))]
taxIncludedPrice = s[0]

# taxIncludedPrice = int(price * 1.08) <= price * 1.08
# price >= taxIncludedPrice / 1.08
# price * 1.08 - 1 < taxIncludedPrice
# price < (taxIncludedPrice + 1) / 1.08

minPrice = taxIncludedPrice / 1.08
maxPrice = (taxIncludedPrice + 1) / 1.08
fromPrice = math.ceil(minPrice)
toPrice = math.floor(maxPrice)


def getPrice(fromPrice, toPrice):
    for price in range(fromPrice, toPrice + 1):
        if fromPrice >= minPrice and fromPrice <= maxPrice:
            return price
        elif toPrice >= minPrice and toPrice <= maxPrice:
            return price
    return ":("


print(getPrice(fromPrice, toPrice))

Submission status: Wrong Answer

Solution code:
N = int(input())
s = []
for i in range(50000):
    s.append(int((i+1)*1.08))
if N in s:
    print(int(1001/1.08+1/1.08))
else:
    print(":)")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

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(math.ceil(n/zei))
else:
    if(round(math.modf(n/zei)[0])):
        print(math.ceil(n/zei))
    else:
        print(':(')

Submission status: Wrong Answer

Solution code:
def tax(n):
  x=(n*100)/108
  print(int(x) )

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
f=-1
for i in range(n,0,-1):
    if(math.floor(i*1.08) == n):
        f=i
        break
if(f==-1 or round(f*1.08)!=n):
    print(":(")
else:
    print(f)

Submission status: Wrong Answer

Solution code:
import math

X= int(input())
tax=1.08

y=round(X/tax)
if(y==0):
    y=":("

print(y)

Submission status: Wrong Answer

Solution code:
n = int( input())
# m2, d2 = map(int, input().split())

x = n / 1.08
x_decimal = x - int(x)

ret = ':('
if x_decimal == 0.0:
    ret = str(int(x))
elif x_decimal > 1 / 1.08:
    ret = str(int(x + 1))
print(ret)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

tmp = round(N/1.08)
floor_ = math.floor(tmp*1.08)
if floor_ == N:
    print(tmp)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

x = '{0:.0f}'.format(n/1.08)

m = math.floor(float(x) * 1.08)

if n != m:
    print(":(")
else:
    print(x)

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
kari = N*100/108
hako = math.ceil(kari)
ans = math.floor(kari)
if  hako*108/100==N or ans*108/100==N:
    print(kari)
elif math.floor(hako*108/100)==N:
    print(hako)
elif math.floor(ans*108/100)==N:
    print(ans)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

a = int(N / 1.08 + 0.5)
b = int(a * 1.08)

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

Submission status: Wrong Answer

Solution code:
import math

X= int(input())
tax=1.08

y=math.floor(X/tax)
if(y==0):
    y=":("

print(y)

Submission status: Wrong Answer

Solution code:
n = float(input())
a = round(n / 1.08)
b = a * 1.08 // 1

if b == n:
  print(a)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
notax = round(N*0.926)
if int(notax*1.08)  != N:
    print(':(')
else:
    print(notax)

Submission status: Wrong Answer

Solution code:
N = int(input())
n = int(N/1.08)
if int(n * 1.08) != N and N!=int( (n+1) * 1.08):
    print(':(')
elif N ==1:
    print(':(')
else:
    print(n+1)

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:
import math
N = int(input())
for i in range(N):
    if math.floor(i*1.08) == N:
        print(i)
        exit()
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
m = int(round(n/1.08,0))
ct = int(m*0.08)
x = 0

if m + ct == n :
    print (m)
else :
    m1 = int(n/1.08)
    for i in range(max(1,int(n/100))) :
        if m1 + i+ int((m1+i)*0.08) == n :
            x = m1 + i
    if x == 0 :
        print (':(')
    else :
        print (x)