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

n_1 = n + 1

s = int(n // 1.08)
t = int(n_1 // 1.08)

print(s)
print(t)
if s % 1.08 == 0:
    print(s)
elif s != t:
    print(t)
else :
    print(':(')

Submission status: Wrong Answer

Solution code:
from decimal import Decimal
import math

n = int(input())

n_1 = n + 1

s = Decimal(n / 1.08)
t = Decimal(n_1 / 1.08)
print(s)
print(t)

if math.floor(s) != math.floor(t):
    print(round(t))
else :
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solve(n):
  for i in range(50000):
    x = i + 1
    if int(x * 1.08) == n:
      return x
    
  return -1
  

  
N = input()
ans = solve(N)
print(":(" if ans == -1 else ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
rate = 1.08
# print((N / rate))
# print((N + 1) / rate)
a = math.ceil(N / rate)
b = math.floor((N + 1) / rate)
if a > b:
    print(":(")
else:
    print(a)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
lx = math.ceil(n/1.08)
rx = (n+1)/1.08
print(lx if lx<=rx else ':(' )

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())
if math.floor(N/1.08)*1.08 == N:
  print(int(N/1.08))
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

x = round(N/1.08)

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

Submission status: Wrong Answer

Solution code:
n = int(input())

import math

x = math.floor(n / 1.08)
m = math.floor(x * 1.08)

if m == n:
    print(int(x))
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

import math

x = n / 1.08
m = math.floor(n * 1.08)

if m == n:
    print(x)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
import sys
N=int(input())
a=N//1.08
c=a+1
d=a-1
b=a*1.08
b=int(b)
if b==N:
  print(a)
  sys.exit()
elif int(c*1.08)==N:
  print(c)
elif int(d*1.08)==N:
  print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
n = int(1078)
a = math.ceil(n/1.08)
b = math.floor(a*1.08)
print(a*(n == b) or ":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
a = math.ceil(n/1.08)
b = math.floor((n+1)/1.08)
print(a*(a == b) or ":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
print(math.ceil(n/1.08)*(math.ceil(n/1.08) == math.floor(-~n/1.08)) or ":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
x1 = math.ceil(n/1.08)
x2 = (n+1)/1.08
print(':(' if x2<x1 else x1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

a = math.floor(N / 1.08)
b = a + 1

aa = math.floor(a * 1.08)
bb = math.floor(b * 1.08)

if(aa == N):
    print(aa)
else:
    if(bb == N):
        print(bb)
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

a = math.floor(N / 1.08)
b = a + 1

aa = math.floor(a * 1.08)
bb = math.floor(b * 1.08)

if(aa == N):
    print(aa)
elif(bb == N):
    print(bb)
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
# import math

N = int(input())

# of = math.floor(N / 108 * 100)
# oc = math.ceil(N / 108 * 100)
o = round(N / 108 * 100)

# if(int(of * 108 / 100) != N and int(oc * 108 / 100) != N):
if round(o * 108 / 100) != N:
    print(":(")
else:
    print(o)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

of = math.floor(N / 108 * 100)
oc = math.ceil(N / 108 * 100)
o = round(N / 108 * 100)

if(int(of * 108 / 100) != N and int(oc * 108 / 100) != N):
    print(":(")
else:
    print(o)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# coding: utf-8

# In[18]:


N = int(input())


# In[23]:


for x in range(int(N * 10/11), N):
    if x*1.08//1 == N:
        print(x)
        break
else:
    print(":(")


# In[ ]:

Submission status: Wrong Answer

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

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

aa = a * 1.08
bb = b * 1.08
if (aa == n):
    print(a)
else:
    if (bb == n):
        print(b)
    else:
        print(':(')

Submission status: Wrong Answer

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

a = N/1.08
b = (N+1)/1.08

if b-math.ceil(a) < 0:
    print(':(')
else:
    print(math.ceil(a))

Submission status: Wrong Answer

Solution code:
n = int(input())
if (len(str(n/1.08).split('.')[1])) <= 3:
    print(round(n/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
if len(str(n/1.08)) <= (len(str(round(n/1.08)))+2):
    print(round(n/1.08))
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0
for i in range(N - int(N/20), N + int(N/20)):
    if int(i*1.08) == N:
        ans = i
        break

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0
for i in range(N - int(N/10), N + int(N/10)):
    if int(i*1.08) == N:
        ans = i
        break

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

Submission status: Wrong Answer

Solution code:
N = int(input())

mini = N / 1.08
maxx = (N + 1) / 1.08
int_n = int((N + 1) / 1.08)

if (mini <= int_n and int_n <= maxx):
    ans = int_n
else:
    ans = ':('

print(ans)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())

mini = math.ceil(N / 1.08)
maxx = math.floor((N + 1) / 1.08)

if (mini <= maxx):
    ans = mini
else:
    ans = ':('

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(":(")

Submission status: Wrong Answer

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

print(":(")

Submission status: Wrong Answer

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

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

print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
s=int(input())
n = math.floor(s/1.08)

for i in range(n):
    if math.floor(n*1.08)==s:
        print(n)
        break
    elif math.floor(n*1.08)<s:
        n+=1
        continue
    else:
        print(":(")
        break

Submission status: Wrong Answer

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

for i in range(n):
    if int(n*1.08)==s:
        print(n)
        break
    elif int(n*1.08)<s:
        n+=1
        continue
    else:
        print(":(")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(n):
    if int(n*1.08)==s:
        print(n)
        break
    elif int(n*1.08)<s:
        n+=1
        continue
    else:
        print(":(")
        break

Submission status: Wrong Answer

Solution code:
n = int(input())

import math

def cal():
    first = 1
    last = n
    while True:
        half = (first + last) // 2
        if half == first:
            return 0

        t = int(half * 1.08)
        if n == t:
            return half
        if n > t:
            first, last = half, last
        if n < t:
            first, last = first, half

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math


# For taking integer inputs.
def inp():
    return(int(input()))


n = inp()
res = round(n/1.08)
if math.floor(res*1.08) >= n:
    print(res)
else:
    #print(res,  math.floor(res*1.08), n)
    print(":(")

Submission status: Wrong Answer

Solution code:
import math


# For taking integer inputs.
def inp():
    return(int(input()))


n = inp()
res = round(n/1.08)
if math.floor(res*1.08) >= n:
    print(res)
else:
    print(":(")

Submission status: Wrong Answer

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

print(":(")

Submission status: Wrong Answer

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

print(":(")

Submission status: Wrong Answer

Solution code:
import math
def resolve():
    N = int(input())
    if (N + 1) * 100 % 108 == 0:
        print(":(")
    else:
        print(math.ceil(N/1.08))
resolve()

Submission status: Wrong Answer

Solution code:
def resolve():
    N = int(input())
    if (N + 1) * 100 % 108 == 0:
        print(":(")
    else:
        print(int((N+1)/1.08))
resolve()

Submission status: Wrong Answer

Solution code:
N = int(input())

est_X = int(N/1.08)*1.08

if int(est_X) == N:
    print(est_X)
elif int(est_X + 1) == N:
    print(est_X + 1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

est_X = int(int(N/1.08)*1.08)

if est_X == N:
    print(est_X)
elif est_X + 1 == N:
    print(est_X + 1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

est_X = int(N/1.08)*1.08

if est_X == N:
    print(est_X)
elif est_X + 1 == N:
    print(est_X + 1)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=int(input())
for i in range(1,X):
  if int(i*1.08)==X:
    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()
print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
num1 = math.floor(N / 1.08)
num2 = math.ceil(N / 1.08)
num3 = math.floor(num1 * 1.08)
num4 = math.floor(num2 * 1.08)
if N == num3 or N == num4:
  print(N)
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
plice = math.floor(n / 1.08)

for i in range(1, plice + 1):
  if math.floor(i * 1.08) == n:
    print(i)
    exit()

print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
plice = math.floor(n / 1.08)

for i in range(1, plice):
  if math.floor(i * 1.08) == n:
    print(i)
    exit()

print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
plice = math.floor(n / 1.08)
can_tax = False
for i in range(1, plice):
  if int(i * 1.08) == n:
    x = i
    can_tax = True
    
if can_tax:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
can_tax = False
for i in range(1, n):
  if int(i * 1.08) == n:
    x = i
    can_tax = True
    
if can_tax:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
can_tax = False
for i in range(1, n):
  if math.floor(i * 1.08) == n:
    x = i
    can_tax = True
    
if can_tax:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
can_tax = False
for i in range(1, n):
  if round(i * 1.08) == n:
    x = i
    can_tax = True
    
if can_tax:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())
can_tax = False
for i in range(1, n):
  if round(i * 1.08) == n:
    x = round(i * 1.08)
    can_tax = True
    
if can_tax:
  print(x)
else:
  print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
print(":(") if N * 2 % 25 ==8 else print(round(N/1.08))

Submission status: Wrong Answer

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


def round_int(x): return int((x * 2 + 1) // 2)


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

Submission status: Wrong Answer

Solution code:

import math
import sys
N = int(input())
ans = 1
while ans < N:
    if(math.floor(ans * 1.08) == N):
        print(ans)
        sys.exit()
    else:
        ans += 1
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

origin = int(n * 100 / 108)
if int(origin * 108 / 100) != n:
  print(":(")
else:
  print(origin)

Submission status: Wrong Answer

Solution code:
n = int(input())

origin = int(n * 100 / 108)
if origin * 108 / 100 != n:
  print(":(")
else:
  print(origin)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
a = math.ceil(N/1.08)
b = math.floor((N+1)/1.08)
tmp = list(range(a,b+1))
print(tmp[0] if tmp else ':(')

Submission status: Wrong Answer

Solution code:
from math import floor

def main():
    N=int(input())
    for i in range(1,N):
        if floor(i*1.08) == N:
            print(i)
            exit()
    print(':(')

main()

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
for n in range(N*100//110,N):
  if n*1.08//1 == N:
    print(n)
    sys.exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
for n in range(N*100//109,N):
  if n*1.08//1 == N:
    print(n)
    sys.exit()
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
for n in range(N*100//108,N):
  if n*1.08//1 == N:
    print(n)
    sys.exit()
print(":(")

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
X = int(input())

for i in range(50000):
  if int(i*1.05) == X:
    print(i)
    break
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
result = float(N) / 1.08
result_int_floor = math.floor(result)
result_int_ceil = math.ceil(result)
if(math.floor(result_int_floor * 1.08) == N):
    print(result_int_floor)
elif(math.floor(result_int_ceil * 1.08) == N):
    print(result_int_ceil)
else:
    print(": (")

Submission status: Wrong Answer

Solution code:
N=int(input())
for i in range(N):
    if i*108//100==N:
        print(i)
        break
    elif i==N-1:
        print(":(")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(n):
  if i*108//100 == n:
    print(i)
    sys.exit()
    
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
import math

input = sys.stdin.readline

def main():
    _is_found = False
    n = int(input())
    for x in range(n):
        if math.floor(x * 1.08) == n:
            print(x)
            _is_found = True
            break
    if not _is_found:
        print(':(')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math

input = sys.stdin.readline

def main():
    _is_found = False
    n = int(input())
    for x in range(n):
        if math.floor(x * 1.08) == n:
            print(x)
            _is_found = True
            break
    if _is_found:
        print(':(')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math

input = sys.stdin.readline

def main():
    _is_found = False
    n = int(input())
    for x in range(n):
        if math.floor(x * 1.08) == n:
            print(x)
            _is_found = True
            break
    if _is_found:
      print(':(')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math

input = sys.stdin.readline

def main():
    b = True
    n = int(input())
    for i in range(n):
        if math.floor(i * 1.08) == n:
            print(i)
            b = False
            break
    if b:
      print(':(')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))
#%%code
from fractions import gcd
def resolve():
    N=int(input())
    for i in range(N):
        if int(i*1.08)==N:
            print(i)
            return

    print(":(")
#%%submit!
resolve()

Submission status: Wrong Answer

Solution code:
from math import floor

n = int(input())

x = round(n/1.08)
y = floor(x * 1.08)

print(x if n == y else ':(')

Submission status: Wrong Answer

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

ans =0

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

Submission status: Wrong Answer

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

ans =0

for i in range(N):
   if math.floor(i*1.08) == N:
      print(i)
      ans += 1
      break
    
    
if ans == 0:
  print(':(')

Submission status: Wrong Answer

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

ans =0

for i in range(N):
  if math.floor(i*1.08) == N:
    print(i)
    ans += 1
    
if ans == 0:
  print(':(')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
div_num = round(n/1.08)
if math.floor(div_num * 1.08) == n:
    print(div_num)
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)
    quit()

print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())
ans=-1

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

Submission status: Wrong Answer

Solution code:
N = int(input())

x = int(N / 1.08)

if int(x * 1.08) == N:
  print(x)

elif int((x+1)*1.08) == N:
    print(x+1)

elif int((x-1)*1.08) == N:
    print(x-1)
  
else:
  print(':/')

Submission status: Wrong Answer

Solution code:
N = int(input())

x = int(N / 1.08)

if int(x * 1.08) == N:
  print(x)

elif int((x+1)*1.08) == N:
    print(x+1)

else:
  print(':/')

Submission status: Wrong Answer

Solution code:
N = int(input())

x = int(N / 1.08)

if int(x * 1.08) == N:
  print(x)

elif int((x+1)*1.08) == N:
    print(x+1)

elif int((x-1))*1.08 == N:
    print(x-1)
  
else:
  print(':/')

Submission status: Wrong Answer

Solution code:
N = int(input())

x = N//1.08

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
ans = ':('
a = n / 1.08

for i in range(math.floor(a - 2) , math.ceil(a + 2)):
  if math.floor(i * 1.08) == n:
    ans = i
    print(i)
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

for i in range(n):
    if (i * 108 //100 == n):
        print(i)
        break
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

for i in range(n):
    if (math.floor(i * 108 /100) == n):
        print(i)
        break
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:
import math

n = int(input())

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

Submission status: Wrong Answer

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

ans = round(N / 1.08)


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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
frag = True
for i in range(n):
  if i*108//100 == n:
    print(i)
    frag=False
    break
if frag:
  print(":(")

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
a = math.ceil(n/1.08)

if a*1.08 >= n:
  print(a)
else:
  print(':(')
  print(a)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
a = math.ceil(n/1.08)

if n+1 > a*1.08 >= n:
  print(a)
else:
  print(':(')
  print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

res = []
for i in range(N):
    cal = math.floor(i * 1.08)
    if cal == N:
        res.append(i)
if len(res) == 0:
    print(':(')
else:
    print(res[0])

Submission status: Wrong Answer

Solution code:
import math
N = float(input())
cost1 = math.floor(N/1.08)
cost2 = cost1 * 1.08

if cost2 != N:
    print(':(')
else:
    print(cost1)

Submission status: Wrong Answer

Solution code:
N=float(input())
x=int(N/1.08)
if N<=(x+1)*1.08<=N+1: 
  print(x+1)
elif N<=x*1.08<=N+1:
  print(x)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
N = int(input())

X = N / 1.08

behind_point = X - int(X)
cond = behind_point == 0.0 or behind_point >= 0.5
if behind_point == 0.0:
    ans = int(X)
elif behind_point >= 0.5:
    ans = int(X) + 1
else:
    ans = ':('
print(ans)

Submission status: Wrong Answer

Solution code:
N=float(input())
x=N//1.08
if x*1.08<=N<=(x+1)*1.08:
  print(x)
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
def II(): return int(input())
def MI(): return map(int,input().split())
def LMI(): return list(map(int,input().split()))
def LIIN(n): return list(int(input()) for _ in range(n))
def LMIN(n): return [list(map(int, input().split())) for _ in range(n)]
def IS(): return input()
def LS(): return list(input())
def MS(): return map(str,input().split())
def LMS(): return list(map(str,input().split()))
def LMS(): return list(map(str,input().split()))
def LISN(n): return list(input() for _ in range(n))
def LMSN(n): return [input().split() for _ in range(n)]
MOD = 10**9+7
INF = 10**18

def main():
    n = II()
    print(n*100//108)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N=int(input())
flg=False
ans=0
for n in range(1, N+1):
  if (int(1.08*n) == N):
    ans=n
    flg=True
if flg:
  print(n)
else:
  print(':(')

Submission status: Wrong Answer

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

if N % 1.08 == 0:
    print(int(x))
else:
    if (x+1) * 1.08 >=  N:
        print(int(x+1))
    else:
        print(':(')

Submission status: Wrong Answer

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

for k in range(n):
  if int(k*1.08)==n:
    ans=k
    
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

Tax = False

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

if Tax:
    print(i)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
from math import floor

N = int(input())

Tax = False

for i in range(N):
    if floor(i*1.08) == N:
        Tax = True
        break

if Tax:
    print(i)
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
n = int(input())
for x in range(int(n / 1.1), n):
    if int(x * 1.08) == n:
        print(x)
        exit(0)
print(':(')

Submission status: Wrong Answer

Solution code:
n=int(input())
for i in range(50000):
	if n==int(i*1.08):
		print(i)
	elif i==49999 and n!=int(i*1.08):
		print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.buffer.readline
N=int(input())
tax=27/25
for i in range(1,N):
    money=int(i*tax)
    if money==N:
        print(i)
        exit(0)
print(":(")

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.buffer.readline
N=int(input())
tax=27/25
for i in range(1,N):
    money=int(i*tax)
    if money==N:
        print(money)
        exit(0)
print(":(")