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:
a,b=map(int,input().split())
if (a+b)%2==0:
    if a+b<19:
        print("Yay!")
    else:
        print(":(")
else:
    if a+b<15:
        print("Yay!")
    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:
D, N = map(int, input().split())

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

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())
if a >= 8 and b >= 8:
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if abs(a-b)*2<=a*2-16:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

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:
d,n = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
print([":(", "Yay!"][sum(list(map(int, input().split()))) <= 8])

Submission status: Wrong Answer

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

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=input().split()
if int(A)<=8 or int(B)<=8:
  print("Yay!")
else:
  print( ":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = (int (x) for x in input ().split ())
if a<=8 and b<=8:
  print ('Yey!')
else:
  print (':(')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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

if abs(a-b) <= 0:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if abs(a-b)>1 and a+b>14:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A+B<=14:
  print("Yay!")
elif abs(A-B)<=1:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A+B<=14:
  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:
a,b= map(int, input().split())

if  0<a<17 and 0<b<17 and a+b<17:
    print('Yeh')
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+b<=16:
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def f(a,b): return a <= 8 and b <= 8
a,b = map(int, raw_input().split())
print ':)' if f(a,b) else ':('

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print("Yay!"if a*b<=64 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 > 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 + b > 16 or a > 8 or b > 8:
  print(":(")
else:
  print("yey!")

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 or b>9:
  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 abs(a-b)>2:
  print(':(')
else:
  print('Yay')

Submission status: Wrong Answer

Solution code:
'x = int(input())\n\nprint(x)\n\nprint("Hello World!")'

Submission status: Wrong Answer

Solution code:
print(1)

Submission status: Wrong Answer

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

print(100**a[0]*a[1])

Submission status: Wrong Answer

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

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(':(')
else:
    print('Yay!')

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 0 < a < 9 and 0 < b < 9:
    print('YaY!')
else:
    print(':(')

Submission status: Wrong Answer

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

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 (16-a)//2 > b or (16-b)//2 > a:
    print('Yay!')
elif a == b:
    print('Yay!')
else:
    print(':(')

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:
n_str = input()
a_str, b_str = n_str.split()
a = int(a_str)
b = int(b_str)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
A, B = [int(x) for x in stdin.readline().rstrip().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('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:
n,m = map(int,input().split())
if n >= 8 or m >= 8:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

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

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 :
    print (":(")
else :
    print ( "Yay!")
if B > 8 :
    print ()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if(x>8 or y>8):
    print("No")
else:
    print("Yes")

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())
cake = [0]*16

if(a+b<=16):
    
    even=0
    while(a and even<16):
        cake[even]=True
        even+=2
        a-=1
    
    odd=1
    while(b and odd<16):
        cake[odd]=False
        odd+=2
        b-=1
    
    #print(cake)
    
    f=1
    
    for pc in cake:
        if(pc==0):
            print(":(")
            f=0
            break
        
    if(f):
        print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if(a+b<=16):
  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<15:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if d ==0 and n == 100:
    print(101)
elif d == 1 and n == 100:
    print(10001)
elif d ==2 and n == 100 :
    print(1000001)
else:
    base = 100**d
    print(base*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('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

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

kaku_a = 360/16 * a
kaku_b = 360/16 * b

if kaku_a < 180 and kaku_b < 180:
    print('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
kaku_a = 360/16 * a
kaku_b = 360/16 * b
if kaku_a <= 180 and kaku_b <= 180:
    print('Yey!')
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())
print([':(', 'Yay!'][int((a <= 16) & (b <= 8))])

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

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:
a,b=map(int,input().split())
print("Yay" if abs(a-b)<=2 else ":(")

Submission status: Wrong Answer

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

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 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 max(a,b) > 9:
  print(':(')
else:
  print('Yay!')

Submission status: Wrong Answer

Solution code:
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:
def main():
    A, B = map(int, input().split())
    if A <= 8 and B <= 8:
        print("Yay!")
    else:
        print("*:(")
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a >= 9 or b >= 9:
    print(":(")
elif a <= 8 and b <= 8:
    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())

c = max(a,b)

if c <= 16:
  print("Yay!")
  
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print("Yay") if a+b % 16 > min(a,b) 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>8 or B>8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a + b > 16 or (a > 9 or b > 9):
    print(":( ")
else:
    print("Yay!")

Submission status: Wrong Answer

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

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:
line = input()
a, b = [int(n) for n in line.split()]

if a>=b:
    c = a/2
    d = 16-a
    if c>d:
        print(":(")
    else:
        print("Yay!")
else:
    c = b/2
    d = 16 -b
    if c>d:
        print(":(")

    else:
        print("Yay!")

Submission status: Wrong Answer

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

if a>=b:
    c = 16 - a
    if c/b>=2 or c/b==1:
        print("Yay!")
    else:
        print(":(")
else:
    c = 16 - b
    if c/a>=2 or c/a==1:
        print("Yay!")
    else:
        print(":(")

Submission status: Wrong Answer

Solution code:
line = input()
A, B = [int(u) for u in line.split()]
def func(a,b):
    return print("Yay!") if a+b<=14 else print(": (")
func(A,B)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
op = [a + b, a - b, a * b]
print(max(op))

Submission status: Wrong Answer

Solution code:
def main():
    line = input()
    A, B = [int(n) for n in line.split()]
    if A <= 8:
        print('Yay!')
    else:
        print(':(')
main()

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())
k = n
if n == 100:
    k += 1
for i in range(d):
    k *= 100
print(k)

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:
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, minimum_spanning_tree
#from scipy.sparse import csr_matrix, coo_matrix, lil_matrix
#import numpy as np
from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')
from datetime import datetime as dt

def main():
  a, b = map(int, readline().split())
  if a<+8 and b<=8:
    print('Yay!')
  else:
    print(':(')
  
  
  
if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    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 = map(int, input().split())
if A <= 8 & A <= 8:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#--------------------------------------------
D, N = map(int, input().split())
 
if N ==100:
    N=101
a=100**D
print(a*N)

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101

ans=(100**D)*N
print(ans)

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101

ans=100**D
print(N*ans)

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101
a=100**D
print(a*N)

Submission status: Wrong Answer

Solution code:
#--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if D ==100:
    D=101
a=100**D
print(a*N)

Submission status: Wrong Answer

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

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

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())
if A < 9 and B < 9:
    print('Yay')
else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if min(a,b)*2+(max(a,b)-min(a,b))*2<=16:
    print('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
def LI():
	return [ int(s) for s in input().split() ]
  
a,b = LI()

print('Yay') if a <= 8 and b <= 8 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())

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 or b>8:
  print(":(")
else:
  print("Yay")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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 = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
input = sys.stdin.readline().rstrip

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
d, n = list(map(int, input().split()))

print(pow(100, d)*n)

Submission status: Wrong Answer

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

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:
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("Yay" if a<=8 and b<=8 else ":(" )

Submission status: Wrong Answer

Solution code:
#!/use/bin/env python3

import math
from collections import defaultdict

(a, b) = [int(s) for s in input().split()]

ans = 'Yay!'

if a > 8 or b > 8:
    ans = ':)'

print(ans)

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:
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())
if n==100:
  n=101
print(n*100**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:
a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print('Yey!')
else:
    print(':(')

Submission status: Wrong Answer

Solution code:
D, N = map(int, input().split())
a = pow(100, D)
#print(a * N)
b = a * N
if N==100:
    print(b + pow(100, D))
else:
    print(b)

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:
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())
m=min(A,B)
M=max(A-m,B-m)
if 0<16-2*m-1 >= 2*(M-1)+1:
  print('Yay!')
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
e = 0
s = 0
flag = ""
for i in range(16):
    if A>=B:
        if flag != "e" and e != A:
            e += 1
            flag = "e"

        if flag != "s" and s != B:
            s += 1
            flag = "s"
    else:
        if flag != "s" and e != A:
            s += 1
            flag = "s"
        if flag != "e" and s != B:
            e += 1
            flag = "e"
if e == A:
    if s == B:
        print("Yay!")
        exit()
print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

c = abs(a-b)
print('Yey!' if c<=2 else ':(')

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 > 9 or b > 9:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = [int(e) for e in input().split()]
A=num[0]
B=num[1]
C=16//(A+B)
if C/2>=A and C/2>=B:
    print('Yay!')
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 or b > 8:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = (int(i) for i in input().split())
if a <= 8 and b <= 8:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b = (int(i) for i in input().split())
if a > 8 or b > 8:
  print('Yes')
else:
  print('No')

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:
import sys
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
ans = "Yay!"
if A > 8 and B > 8 :
    ans = ":("
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>8 or b>8:
  print(":(")
  exit()
else:
  if a%2==1 and b%2==0:
    print("Yay!")
    exit()

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans="Yay!"
if 16/a>0.5:
  ans=":("
elif 16/b>0.5:
  ans=":("
print(ans)

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

n = 1

for i in range(1, D+1):
        n *= 100
if N == 100:
        N = 101
print(n * N)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
A, B = [int(x) for x in input().split()]
if A <= 8 and B <= 8:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
if a!=8 and a+b==16:
  print(':(')
elif a==14 or b==14:
  print(':(')
elif a<=7 and b<=7:
  print('Yay!')
elif a+b<=14:
  print('Yay!')
else:
  print('Yay!')

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
if (a!=8 and a+b==16) or a==14 or b==14:
  print(':(')
else:
  print('Yay!')

Submission status: Wrong Answer

Solution code:
# データ読み込み

import sys
from collections import deque

def input_data(d=""):
  t = sys.stdin.read()
  if t:
    return t
  else:
    if d[0] == "\n":
      d = d[1:]
    if d[-1] == "\n":
      d = d[:-1]    
    return d

A, B  = map(int,input_data().split())
A
out = ":("
if A <= 6 and B <= 6:
  out = "Yay!"

print(out)

Submission status: Wrong Answer

Solution code:
# データ読み込み

import sys
from collections import deque

def input_data(d):
  t = sys.stdin.read()
  if t:
    return t
  else:
    if d[0] == "\n":
      d = d[1:]
    if d[-1] == "\n":
      d = d[:-1]    
    return d

A, B  = map(int,input_data("""
5 10
""").split())
A
out = ":("
if A <= 6 and B <= 6:
  out = "Yay!"

print(out)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if min(A, 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(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

Solution code:
a, b = [int(x) for x in input().split()]
if a<8 and a<8:
    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 = list(map(int, input().split()))

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

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 and b<8:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if min(a, 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("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!')