Problem:


Score: 100 points

Problem Statement

E869120's and square1001's 16-th birthday is coming soon.

Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan-shaped pieces.

E869120 and square1001 were just about to eat A and B of those pieces, respectively,

when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".

Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Constraints

A and B are integers between 1 and 16 (inclusive).

A+B is at most 16.

Input

Input is given from Standard Input in the following format:

A B

Output

If both E869120 and square1001 can obey the instruction in the note and take desired numbers of pieces of cake, print Yay!; otherwise, print :(.

Sample Input 1

5 4

Sample Output 1

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 2

8 8

Sample Output 2

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 3

11 4

Sample Output 3

:(

In this case, there is no way for them to take desired number of pieces, unfortunately.



Sample input:
5 4


Sample output:
Yay!

Submission status: Wrong Answer

Solution code:
x,y = (int(i) for i in input().split())
if y < 100:
    print(y*100**x)
else:
    print(((y+1)*100)**x)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print("Yay!" if a<9 and a<9 else ":(")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a > 8  or b >8 :
    print(':(')
else :
    print('Yay')

Submission status: Wrong Answer

Solution code:
if 8 >= max(map(int, input().split())):
    print("Yay!")
else:
    print("(:")

Submission status: Wrong Answer

Solution code:
N, M = map(int,input().split())
if N <= 8 and M <= 8:
  print("Yay!")
else:
  print(":)")

Submission status: Wrong Answer

Solution code:
D, N = map(int, input().split())
if N == 100:
    N = 101
if D == 0:
    print(N)
elif D == 1:
    print(N * 100)
else:
    print(N * (100 ** 2))

Submission status: Wrong Answer

Solution code:
D, N = map(int, input().split())
if D == 0:
    print(N)
elif D == 1:
    print(N * 100)
else:
    print(N * (100 ** 2))

Submission status: Wrong Answer

Solution code:
D,N = map(int, input().split())
if N <= 99:
  print((100**D) * N)
else:
  print((100**D) * 101)

Submission status: Wrong Answer

Solution code:
D,N = map(int, input().split())
if N <= 99:
  print(100**D * N)
else:
  print(100**D * 101)

Submission status: Wrong Answer

Solution code:
d,n = [int(x) for x in input().split()]

if n == 100:
  print(pow(100,d)*101)
else:
  print(pow(100,d)*n)

Submission status: Wrong Answer

Solution code:
d,n = [int(x) for x in input().split()]

print(pow(100,d)*n)

Submission status: Wrong Answer

Solution code:
d,n = [int(x) for x in input().split()]

print(pow(10,d)*n)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if max(a,b) > 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline

a, b = map(int, input().rstrip().split())

if ((16 - abs(a - b))*2 < (16 - min([a, b]))):
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A > 9 or B > 9 :
    print(":(")
else :
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a==0:
  print(b)
elif a==1:
  if b==100:
    print((100**a)*(b+1))
  else:
    print((100**a)*b)
else:
  if b==100:
    print((100**a)*(b+1))
  else:
    print((100**a)*b)

Submission status: Wrong Answer

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

a,b = map(int,input().split())

if a >= 8 or b >= 8:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if max(a, b) > 8:
    print (":(")
else:
    print ("Yey!")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<8 or  b<8:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
if a>=9:
  print(':(')
elif b>9:
  print(':(')
else:
  print('Yay!')

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)

if a <= 8 and b <= 8:
    print('YES')

else:
    print(':(')

Submission status: Wrong Answer

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8 or list1_1 < 8:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8 or list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8:
    print("Yay!")
if list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 8:
    print("Yay!")
elif list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 < 10:
    print("Yay!")
elif list1_1 < 10:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

if((A-B) <= 1):
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if y == 100:
    print(101*(100**x))
else:
    print((100**x)*y)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if (a > 8 and b > 8):
	print(':(')
else:
	print('Yay!')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a > 8 and b > 8:
	print(':(')
else:
	print('Yay!')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a > 8 & b > 8:
	print(':(')
else:
	print('Yay!')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a <= 8 & b <= 8:
	print('Yay!')
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a < 9 & b < 9:
	print('Yay!')
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

K, N = map(int, input().split())
print(100**N*K)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=8 and b<=8:
    print("Yey!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>8 or b>8:
    print(":(")
else:
    print("Yey!")

Submission status: Wrong Answer

Solution code:
a,b=input().split();print("Y:a(y !"[a>"8"or b>"8"::2])

Submission status: Wrong Answer

Solution code:
D_N = [int(i) for i in input().split()]
t = 0
q = 100 ** D_N[0]
i = 0


while(D_N[1]):
    i = i+1
    t = t+q
    
    if i == 100:
        print(t + q)
        break

    if i == D_N[1]:
        print(t)
        
        break

Submission status: Wrong Answer

Solution code:
a = [int(i) for i in input().split()]
if a[0]<=8 or a[1]<=8:
  print('Yay!')
else:  
  print(':(')

Submission status: Wrong Answer

Solution code:
A, B = [int(x) for x in input().split(" ")]
if max(A, B) > 8:
  print(":(")
else:
  print("Yey!")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=8 and b<=8: 
  print("Yey!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if (A<9) and (B<9):
    print('Yay!')
else:
    print(':)')

Submission status: Wrong Answer

Solution code:
l = [int(i) for i in input().split()]
if (l[0]<=8)and(l[1]<=8):
  print('Ywy!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a > 9 and b > 9:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A <= 8 and B <= 8:
        print('Yey!')
    else:
        print(':(')


#
# main
#

# 1. use list instead of stdin

# contents = '''\
# 2 9\
# '''
# lines = contents.split('\n')

# 2. use stdin

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a > 8 or b > 8:
  print(":(")
else:
  print("Yey!")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A<8 and B<8:
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
print(l)
if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if(all(l)<=8):
  print('Yay!')
else:print(':(')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if(all(l)<=8):
  print('Yah!')
else:print(':(')

Submission status: Wrong Answer

Solution code:


a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print("Yay")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A <= 8 & B <= 8:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A <= 8 & B <= 8:
  print("Yey!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a = [int(i) for i in input().split()] 
if a[0]<= 8 and a[1]<=8:
 print('Yes')
else:
 print(':(')

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())
if A <= 8 and B <= 8:
    print("yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print("Yay" if a<=8 and b<=8 else ":(")

Submission status: Wrong Answer

Solution code:
a,b =map(int,input().split())
if a<=8 or b<=8:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if(A+B>8):
    print(":(")
elif(A+B<=8):
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (max(a, b) >= 8):
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
if abs(a-b) > 1:
  print(":(")
else:
  print("Yey!")

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
if a > 8 or b > 8:
  print(":(")
else:
  print("Yey!")

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
if max(a,b) > 8:
  print(":(")
else:
  print("Yey!")

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
for i in range(16):
  if i % 2 == 0:
    if a > 0:
      a -= 1
    else:
      print(":(")
      break
  else:
    if b > 0:
      b -= 1
    else:
      print(":(")
      break
  if a == 0 and b == 0:
    print("Yay!")
    break

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if (A+B)%2 == 0 or A+B < 15:
	print('Yay!')
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a>8) or (b>8):
    print(':(')
else:
    print('Yey!')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>8 or b>8:
    print(':(')
else:
    print('Yey!')

Submission status: Wrong Answer

Solution code:
A, B = map( int, input().split())

if( A <= 8 and B <= 8):
  print('yey!')
  
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
indata = input()
indata = indata.split()
A=int(indata[0])
B=int(indata[1])

if A > 8:
    print(":(")

if B > 8:
    print(":(")

print("Yay!")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A <= 8 and B <= 8:
    print('Yah!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A <= 8 and B <= 8:
    print('Yah')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a>=8 or b>=8:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(a, b)
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a <= 8 & b <= 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split());c= 'yay!' if a<9 and b<9 else ':(';print(c)

Submission status: Wrong Answer

Solution code:
A , B= map(int,input().split())
if A <- 8 and B <= 8:
	print('Yay!')
else:
	print(':(')

Submission status: Wrong Answer

Solution code:
A , B= map(int,input().split())
if A < 8 and B < 8:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a > 9 or b > 9:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a > 9:
  print(":(")
elif b > 9:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print('Yay!') if a <= 8 and b <= b else print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A <= 8 & B <= 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())

if A <= 8 & B <= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
a,b  = map(int, input().split())

if a+max(a-8,0)*2+b+max(b-8,0)*2 <= 16:
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
D,N = map(int,input().split())
print(N*(100**D))

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))

print('Yay!' if a <= 8 else ':(')

Submission status: Wrong Answer

Solution code:
D, N = map(int,input().split())

if N==100 :
	X = (100**D)*(N+1)
else:
	X = (100**D)*N
print(X)

Submission status: Wrong Answer

Solution code:
D, N = map(int,input().split())

if N==100:
	X = (100**D)*N+1
else:
	X = (100**D)*N
print(X)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<=8 or B<=8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<=8 or B>=8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())

if A-B <=1 or B-A <=1:
	print("Yay!")
else:
	print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())

if A%2==0 and B%2==0:
	print("Yay!")
else:
	if A-B <=1 or B-A <=1:
		print(":(")

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())

if A-B <= 1:
	print("Yay!")
else:
	print(":(")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a<=8 and b<=8:
  print("Yes!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= 8 and b <= 8:
  print("Yey!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if a<9 & b<9:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
A, B = [int(x) for x in input().split(' ')]

if A >= 8 or B >= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if (a or b) > 8:
    print(':(')
else:
    print('Yay!')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a or b >= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

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

def main():
    A, B = map(int, (input().split()))
    print('Yay' if A<=8 and B<=8 else ':(')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
D,N=map(int,input().split())
print(100**D*N if N<100 else 100**D*101)

Submission status: Wrong Answer

Solution code:
D, N = map(int, input() .split())
if N == 100:
	N += 1
print(N * 100 ** D)

Submission status: Wrong Answer

Solution code:
D,N=map(int, input().split())
num=100**D
print(N*num)

Submission status: Wrong Answer

Solution code:
D, N = (int(i) for i in input().split())
A = 100 * N
B = 10000 * N
if N == 100:
  if D == 0:
    print(101)
  if D == 1:
    print(10100)
  if D == 2:
    print(10010000)

if D == 0:
    print(N)
elif D == 1:
    print(A)
else:
    print(B)

Submission status: Wrong Answer

Solution code:
D, N = (int(i) for i in input().split())
A = 100 * N
B = 10000 * N
if D == 0:
    print('N')
elif D == 1:
    print(A)
else:
    print(B)

Submission status: Wrong Answer

Solution code:
A, B = (int(i) for i in input().split())
if A <= 8 and B <= 8:
  print('yay!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
a,b = (int(_) for _ in input().split())
if(a > 8 or b > 8):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split(' ')]

if a > 8 or b > 8:
    print(":(")
else:
    print("Yay")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A >= 9 or B >= 9:
    print(':(')
else:
    print('Yay')

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print('Yay')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
# coding: utf-8

def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

    A, B = map(int, input().split())
    print(A, B)

Submission status: Wrong Answer

Solution code:
a, b  = list(map(int ,input().rsplit()))

if a>8 or b>8:
    print(":(")
else:
    print("Yay")

Submission status: Wrong Answer

Solution code:
lis = list(map(int, input().split()))
if lis[0] < 8 and lis[1] < 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
D,N = map(int,input().split())

if D == 0:
    print(N)
elif D == 1:
    print(100*N)
elif D == 2:
    print(10000*N)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

if A <= 8 and B <= 8:
    print("Yey!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A < 8 and B < 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys 
import math

a, b = map(int, input().split(" "))

if a<=8 & b<=8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys 
import math

a, b = map(int, input().split(" "))

if a<=8 & b<=8:
    print("Yey!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
amount = input()

lis = amount.split()

judge = 0

for num in lis:
    if int(num) <= 9:
        judge += 1

    else:
        pass

if judge == len(lis):
    print("Yay!")

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
amount = input()

lis = amount.split()

if int(lis[0]) and int(lis[1]) <= 8:
    print("Yay")

else:
    print(":(")

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())
if d!=100:
	print((100**d)*n)
else:
	print((100**d)*(n+1))

Submission status: Wrong Answer

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

def main():
    #入力
    A, B = map(int, input().split())

    if A > 8 or B > 8:
        print(':(')
    else:
        print('Yay')
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output
def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))

# Binary converter
def to_bin(x):
    return bin(x)[2:]

# --------------------------------------------

dp = None

def main():
    a, b = [int(_) for _ in input().split()]

    if max(a, b) > 9:
        print(":(")
    else:
        print("Yay!")

main()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

if A <= 8 & B <= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:

A, B = map(int, input().split())

if A <= 9 & B <= 9:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
d,n = map(int,input().split())
if n == 100 :
    print((100**d)*101)
else :
    print((100 ** d) * n)

Submission status: Wrong Answer

Solution code:
d,n = map(int,input().split())
if d == 0 :
    print(n)
elif d == 1 :
    print(100 * n)
else :
    print(10000 * n)

Submission status: Wrong Answer

Solution code:
d, n = map(int, input().split())
print(100**d * (n+n//99))

Submission status: Wrong Answer

Solution code:
d, n = (int(i) for i in input().split())

if n != 100:
    print(pow(100, d) * n)
else:
    print(pow(100,d) * n + 1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 8:
  print(':(')
else:
  print('Yay!')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a > 8 and b > 8:
    print(":(")
else:
    print("YAY")

Submission status: Wrong Answer

Solution code:
print("Yey!" if max(list(map(int, input().split())))<9 else ":(")

Submission status: Wrong Answer

Solution code:
print("yey!" if max(list(map(int, input().split())))<9 else ":(")

Submission status: Wrong Answer

Solution code:
d,n=input().split()
d=int(d)
n=int(n)

if d==0:
	if n==100:
		print(101)
	else:
		print(n)
elif d==1:
	if n==100:
		print(10100)
	else:
		print(n*10)
else:
	print(n*10000)

Submission status: Wrong Answer

Solution code:
d,n=input().split()
d=int(d)
n=int(n)

if d==0:
	print(n)
elif d==1:
	print(n*10)
else:
	print(n*10000)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

A,B = list(map(int, input().split()))

if A > 8 or B > 8:
    print(":(")
else:
    print("Yey!")

Submission status: Wrong Answer

Solution code:
#coding:utf-8

A,B = list(map(int, input().split()))

if A > 8 or B > 8:
    print(':(')
else:
    print('Yey!')

Submission status: Wrong Answer

Solution code:
#coding:utf-8

A,B = list(map(int, input().split()))

if A <= 8 and B <= 8:
    print('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
#coding:utf-8

A,B = list(map(int, input().split()))

space = 16 - min(A,B)

if space >= 2 * (max(A,B)-min(A,B)):
    print('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
#coding:utf-8

A,B = list(map(int, input().split()))

if A <= 8 and B <= 8:
    print("Yey!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)

if a>8 or b>8:
	print(":(")
else:
	print("Yay")

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)

if a>8 or b>8:
	print(":)")
else:
	print("Yay")

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)

if a>8 and b>8:
	print(":)")
else:
	print("Yay")

Submission status: Wrong Answer

Solution code:
d,n = (int(i) for i in input().split())
print(100 ** d * n)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 8 and b > 8 :
  print(":(")
else :
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a > 8 and b > 8 :
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 8 and b > 8 :
  print (":(")
else:
  print ("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a > 8 and b > 8 :
    print (":(")
else:
    print ("Yay!")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a > 8 and b > 8 :
  print (":(")
else :
  print ("Yay!")

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    D, N = map(int, input().split(' '))

    if N < 100:
        print(N * 10**(2*D))
    else:
        print((N+1) * 10**(2*D))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":)")

Submission status: Wrong Answer

Solution code:
D,N = map(int, input().split())

print(100 ** D * N)

Submission status: Wrong Answer

Solution code:
import math

D, N = map(int,input().split())
C = 0

for i in range(1,N+1):
	if(i == 100):
		C = math.pow(100,D+1)
	C = math.pow(100,D) * i

print(int(C))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=8 and b<=8:
    print('Yes')
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A,B=list(map(int,input().split()))
if A<=8 and B<=8:
  print('Yay!')
else:
  print(":)")

Submission status: Wrong Answer

Solution code:
data = list(map(int,input().split()))
d = data[0]
n = data[1]
if(n==100):
	print(d*(n+1))
else:
	print(d*n)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print('Yay!' if (a<=10 and b<=10) else ':(')

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())
if n==100:
    n+=1
print((100**d)*n)

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())

print((100**d)*n)

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())

print((10**d)*n)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a >= 8 and b >= 8:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
args = (input())
a = int( args.split(" ")[0])
b = int(args.split(" ")[1])

if(a>6 or b>6):
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())
if (A-1) <= 16 - A and B-1 <= 16 -B:
    print ("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().strip().split())

if A >= 8 or B >= 8:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
D, N = map(int,input().split())

count = N
x = (100 ** D) * (N - (N-1)//99)                                                                         
print(x)

Submission status: Wrong Answer

Solution code:
D, N = map(int, raw_input().split())
if N == 100:
 print 100**D*101
else:
 print 100**D*N

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

max = max(A,B)
min = min(A,B)
# print("max: {}".format)
if(A==B and A<=8 and B<=8):
    print("Yay!")
elif((min*2)+(max-min) +1 <= 16):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

max = max(A,B)
min = min(A,B)
# print("max: {}".format)
if(A==B):
    print("Yay!")
elif((min*2)+(max-min) +1 <= 16):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

max = max(A,B)
min = min(A,B)
# print("max: {}".format)
if(A==B):
    print("Yay!")
elif((min*2+1)+(max-min) +1 <= 16):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

max = max(A,B)
min = min(A,B)
# print("max: {}".format)
if(A==B):
    print("Yay!")
elif((min*2+1)+(max-min) +2 <= 16):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

max = max(A,B)
min = min(A,B)
print("max: {}".format)
if(A==B):
    print("Yay!")
elif((min*2+1)+(max-min) +2 <= 16):
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(d,n):
    N=n%100
    if d != 0:
        return (100**d)*n
    elif d == 100:
        return (100*d)*n
    else:
        return n

# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(d,n):
    if d==0:
        return(n)
    if d==1:
        return(100**1*n)
    if d==2:
        return(100**2*n)

# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(a, b):
    if a==0:
        answer = atr(range(b))
    else:
        answer = (100*a*b)
    return answer

# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(a,b):
    if a >= 9 or b >= 9:
        return ':c'
    else:
        return 'yay!'
# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(a, b):
    if a>8 and b>8:
        answer=':('
    else:
        answer='Yay!'
    return answer

# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(a, b):
    if 1<a and a<9:
        if 1<b and b<9:
            answer='Yay!'
        else:
            answer=':('
    else:
        answer=':('
    return answer

# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
def solve(a,b):
    if 8>=a and 8>=b:     
        return'Yay!'
    else:
        return':c'


# ここから下は，入力・出力形式が同じであれば，変えなくて良い．
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()