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.

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

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

Solution (Python):


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

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

Solution (Python):
S = raw_input()
L = S.split(" ")
if int(L[0]) <= 8 and int(L[1]) <= 8:
    print "Yay!"
else:
    print ":("

Solution (Python):
A, B = (int(i) for i in input().split())
if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")

Solution (Python):

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

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

Solution (Python):



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

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

Solution (Python):


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

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

Solution (Python):
l = list(map(int, input().split()))
A, B = l[0], l[1]

if A >= 9 or B >= 9:
    print(':(')
    exit()

print('Yay!')

Solution (Python):
def solve(a, b):
    return "Yay!" if (max(a, b) <= 8) else ":("

assert solve(5, 4) == "Yay!"
assert solve(8, 8) == "Yay!"
assert solve(11, 4) == ":("

a, b = map(int, raw_input().split())
print solve(a, b)

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

Solution (Python):
s = input().strip()
ss = s.split()
a = int(ss[0])
b = int(ss[1])
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

Solution (Python):
s = input().strip()
ss = s.split()
a = int(ss[0])
b = int(ss[1])
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

Solution (Python):
s = raw_input()
ss = s.split()
a = int(ss[0])
b = int(ss[1])
if a > 8 or b > 8:
	print ":("
else:
	print "Yay!"

Solution (Python):
s = raw_input()
ss = s.split()
a = int(ss[0])
b = int(ss[1])
if a > 8 or b > 8:
	print ":("
else:
	print "Yay!"

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

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

Solution (Python):


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

Solution (Python):
a, b = map(int, raw_input().split(' '))

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

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

Solution (Python):
ab = input().split()
[a, b] = map(int, ab)
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
shares = input()
share_a, share_b = int(shares.split()[0]), int(shares.split()[1])

if share_a > 8 or share_b > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):



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

smaller = min(a, b)
bigger = b if a == smaller else a

diff = bigger - smaller
residual = 16 - smaller * 2
if diff * 2 > residual:
    print(":(")
else:
    print("Yay!")

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

Solution (Python):
def read():
    return int(input())


def readlist():
    return list(map(int, input().split()))


def readmap():
    return map(int, input().split())


A, B = readmap()

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

Solution (Python):




if __name__ == '__main__':
    a, b = map(int, input().split())

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

Solution (Python):
def main():
    
    A, B = map(int, input().split())
    
    if A>8 or B>8:
        print(":(")
    else:
        print("Yay!")
    
    
    
if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
x,y = map(int,input().split())

if x <= 8 and y <= 8:
    print('Yay!')
else:
    print(':(')

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

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

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

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

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

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

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

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

Solution (Python):




if __name__ == '__main__':
    a, b = map(int, input().split())

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

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

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

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

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

if a <= 8 and b <= 8:
    ans = 'Yay!'
else:
    ans = ':('

print(ans)

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

if a <= 8 and b <= 8:
    ans = 'Yay!'
else:
    ans = ':('

print(ans)

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

Solution (Python):


 
a,b = map(int, input().split())
if(a+b>16):
	print(":(")
elif(a==8 and b==8):
	print("Yay!")
elif(max(a,b)>8):
	print(":(")
else:
	print("Yay!")

Solution (Python):
n=list(map(int,input().split()))
A=n[0]
B=n[1]
if(A>8 or B>8):
    print(':(')
else:
    print('Yay!')

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

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

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

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

Solution (Python):


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

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

Solution (Python):
A, B = map(int, raw_input().split())

if A > 8:
    print ":("
elif B > 8:
    print ":("
else:
    print "Yay!"

Solution (Python):

"""
Created on Sat Jun 16 23:09:00 2018

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

Solution (Python):


import itertools
import math


def combinations_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))


A, B = map(lambda x: int(x), input().split())
cake = range(1, 17)

pattern_A = [pattern for pattern in itertools.combinations(cake, A)]

iter_cakeB = []
for pat in pattern_A:
    cake1 = list(range(1, 17))
    for i in pat:
        cake1.remove(i)
    iter_cakeB.append(cake1)


pattern_B = [[[] for _ in range(combinations_count(len(cake)-A, B))]
             for i in range(len(iter_cakeB))]

for i, cake_put_by_A in enumerate(iter_cakeB):
    for j, pattern in enumerate(itertools.combinations(cake_put_by_A, B)):
        pattern_B[i][j] = pattern



flag = False
for cnt, patA in enumerate(pattern_A):
    a = [patA[i + 1] - patA[i] for i in range(len(patA)) if i < len(patA)-1]
    if 1 in a:
        continue
    else:
        for patB in pattern_B[cnt]:
            b = [patB[i + 1] - patB[i] for i in range(len(patB)) if i < len(patB)-1]
            if 1 in b:
                continue
            else:
                print('Yay!')
                flag = True
                break
    if flag:
        break

if cnt == len(pattern_A)-1:
    print(':(')

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

Solution (Python):

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

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

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

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

Solution (Python):
line = input().split(' ')
a = line[0]
b = line[1]

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

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

Solution (Python):
import sys

get = sys.stdin.readline()
a, b = get.split(" ")
if (max(int(a), int(b)) <= 8):
    print("Yay!")
else:
    print(":(")

Solution (Python):
a, b = map(int, input().split())
if a <= 0 or a >= 17:
    print("Invalud numbers are entered.")
elif a + b >= 17:
    print("Invalud numbers are entered.")
elif a >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")

Solution (Python):

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

Solution (Python):
print("Yay!" if all([int(x)<9 for x in input().split()]) else":(")

Solution (Python):
A,B=[int(i) for i in input().split()]
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):
s = input().rstrip().split()

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

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

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

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

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

Solution (Python):
A, B = map(int, raw_input().split())
if A < 9 and B < 9 :
    print "Yay!"
else:
    print ":("

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

Solution (Python):
A,B=(int(i) for i in input().split())

if A>=9 or B>=9 or (A+B)>16 : print(':(')
else: print('Yay!')

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

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

Solution (Python):

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

Solution (Python):
S = input().split()
A = int(S[0])
B = int(S[1])
if A <= 8:
    if B <= 8:
        C = "Yay!"
    else:
        C = ":("
else:
    C = ":("
print(C)

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

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

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

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

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

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

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

Solution (Python):



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

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

Solution (Python):


def run(a, b):
    if a > 8 or b > 8:
        return ':('
    else:
        return 'Yay!'


def read_line():
    a, b = input().split()
    a = int(a)
    b = int(b)
    return (a, b)


def main():
    a, b = read_line()
    print(run(a, b))


if __name__ == '__main__':
    main()

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

Solution (Python):

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

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

Solution (Python):
inp = input()
inp2 = inp.split()
A=int(inp2[0])
B=int(inp2[1])
if A >8 or B>8:
	print(":(")
else:
	print("Yay!")

Solution (Python):
a, b = list(map(int, input().split()))
 
s = 16
for i in range(16):
	if i%2 == 0:
		if a > 0:
			s -= 1
			a -= 1
	else:
		if b > 0:
			s -= 1
			b -= 1
	if s < 0:
		break
 
if a > 0 or b > 0:
	print(':(')
else:
	print('Yay!')

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

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

Solution (Python):
a, b = map(int, raw_input().split())
cake = '1234567890123456'
for i in range(8):
	if a != 0:
		cake.replace(cake[2*1], 'o')
		a -= 1
	if b != 0:
		cake.replace(cake[2*1+1], 'x')
		b -= 1
if a != 0 or b != 0:
	print ':('
else :
	print 'Yay!'

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

Solution (Python):
ab = input()
a, b = ab.split()
A = int(a)
B = int (b)
if A > 8 or B > 8:
    res = ':('

else:
    res = 'Yay!'

print(res)

Solution (Python):

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





if a <= 8 and b <= 8:
    ans ="Yay!"
else:
    ans = ":("

print(ans)

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

if A < 9 and B < 9:
    print("Yay!")
else:
    print(":(")

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

if A < 9 and B < 9:
    print("Yay!")
else:
    print(":(")

Solution (Python):
a, b = [int(i) for i in input().split()]
 
if a <= 8 and b<= 8:
    print ("Yay!")
else:
    print(":(")

Solution (Python):
a, b = [int(i) for i in input().split()]
 
if a <= 8 and b<= 8:
    print ("Yay!")
else:
    print(":(")

Solution (Python):
ui = input()
D, N = int(ui.split()[0]), int(ui.split()[1])
if D <= 8 and N <= 8:
    print('Yay!')
else:
    print(':(')

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

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

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

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

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

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

Solution (Python):
A,B = map(int,input().split())
p = 0
if A>8:
	p = 1
if B>8:
	p = 1
if p==0:
	print("Yay!")
else:
	print(":(")

Solution (Python):
[A, B] = [int(x) for x in input().split()]
if A < 9 and B < 9:
  print('Yay!')
else:
  print(':(')

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

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

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

Solution (Python):

 
tmp = input()
a = int(tmp.split(" ")[0])
b = int(tmp.split(" ")[1])
 
if a <= 8:
    if b <= 8:
        print("Yay!")
    else:
        print(":(")
else:
    print(":(")

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

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

Solution (Python):


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


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

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

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

Solution (Python):


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

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

Solution (Python):


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

ans_success = "Yay!"
ans_fail = ":("


def get_ans(a, b):
    if a == 8 and b == 8:
        return ans_success
    if a > 8 or b > 8:
        return ans_fail
    else:
        return ans_success



print(get_ans(a, b))

Solution (Python):
A, B = list(map(int, input().split()))
if(A > 8 or B > 8):
    print(':(')
else:
    print('Yay!')

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

Solution (Python):
n,m=map(int,input().split())
print("Yay!" if n<=8 and m <=8 else ":(")

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

Solution (Python):


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

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

else:
    print(":(")

Solution (Python):
numA,numB = map(int,input().split())
if(numA <=8 and numB <= 8):
    print('Yay!')
else:
    print(':(')

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

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

Solution (Python):
A,B=map(int, input().split(' '))
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B])*2)/2:
    print('Yay!')
else:
    print(':(')

Solution (Python):

AB =  list(int(i) for i in input().split())

if AB[0] <= 8 and AB[1] <= 8:
    print("Yay!")
else:
    print(":(")

Solution (Python):

x = list(map(int, input().split()))

if x[0]<=x[1]:
    a=x[1]-x[0] 
    if 16-2*x[0]-2*a>=0:
        print('Yay!')   
    else:
     print(':(')
    
if x[0]>x[1]:
    a=x[0]-x[1] 
    if 16-2*x[1]-2*a>=0:
        print('Yay!')   
    else:
     print(':(')

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

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

Solution (Python):
c = input().split()

a = int(c[0])
b = int(c[1])

if a > 8:
    print(':(')

elif b > 8:
    print(':(')

elif a+b > 16:
    print(":(")

else:
    print("Yay!")

Solution (Python):
s=input().split()
if int(s[0])<=8 and int(s[1])<=8:
    print("Yay!")
else:
    print(":(")

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
if a <= 0 or a >= 17:
    print("Invalud numbers are entered.")
elif a + b >= 17:
    print("Invalud numbers are entered.")
elif a >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")

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

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

Solution (Python):
a, b = map(int, raw_input().split())

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

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

Solution (Python):

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

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

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

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

else:
  print(":(")

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

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

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

Solution (Python):




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


if __name__ == '__main__':
    main()

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

if a > b:
    tmp = a
    a = b
    b = tmp

r = 16 - 2 * a
b = b - a

if r // 2 >= b:
    print('Yay!')
else:
    print(':(')

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

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

if a<9 and b<9:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):
input_line = map(int,raw_input().split())
A = input_line[0]
B = input_line[1]

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

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

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

Solution (Python):


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

Solution (Python):
l = input().split()
l[0]=int(l[0])
l[1]=int(l[1])
if l[0]<=8 and l[1]<=8:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):
a,b = [int(x) for x in input().split()]

big = max((a,b))
small = min((a,b))


last = 16 - small*2
if(last % 2 == 1):
    last += 1

if(last >= (big-small)*2):
    print("Yay!")
else:
    print(":(")

Solution (Python):
(a, b) = [int(i) for i in input().split()]
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):


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

Solution (Python):
a, b = (int(i) for i in input().split())

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

Solution (Python):



import calendar as cal

i = input().split(' ')
a = int(i[0])
b = int(i[1])

if a >= b:
    l = a
    s = b
else:
    l = b
    s = a

d = l - s

e = 16 - s*2

if e/2 >= d:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):



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

Solution (Python):
A,B=map(int, input().split())
cake_list=[0 for i in range(17)]
for i in range(1,17):
    if cake_list[i-1]!=1 and cake_list[i]==0 and cake_list.count(1)<A:
        cake_list[i]=1
    if cake_list[i-1]!=-1 and cake_list[i]==0 and cake_list.count(-1)<B:
        cake_list[i]=-1
if cake_list.count(1)==A and cake_list.count(-1)==B:
    print("Yay!")
else:
    print(":(")

Solution (Python):
import sys

tmp = [int(i) for i in input().split()]

a = tmp[0]
b = tmp[1]

if a <= 8 and b <= 8:
    print('Yay!')
    sys.stdout.flush()
else:
    print(':(')
    sys.stdout.flush()

Solution (Python):
import sys

tmp = [int(i) for i in input().split()]

a = tmp[0]
b = tmp[1]

if a <= 8 and b <= 8:
    print('Yay!')
    sys.stdout.flush()
else:
    print(':(')

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

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

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

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

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

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

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

else:
    print(":(")

Solution (Python):
ins = [ int(i) for i in raw_input('').split()]
A, B = ins 


flag = True

if 16 < A or A < 1 : 
    flag = False

if 16 < B or B < 1 : 
    flag = False

if 16 < A+B or 8 < A or 8 < B:
    flag = False

if flag:
    print('Yay!')
else:
    print(':(')

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

Solution (Python):
l = raw_input().split()
 
A = l[0]
B = l[1]

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

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

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

Solution (Python):
number = input()
a = number.split()

A=int(a[0])
B=int(a[1])

if A < 9 and B < 9:
    print("Yay!")
else:
    print(":(")

Solution (Python):


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

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

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

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

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

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

Solution (Python):
inp = list(map(int, input().split()))
A, B = inp[0], inp[1]

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

else:
    print(":(")

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys


def check(A, B):
    if A > 8 or B > 8:
        return False
    return True


ret = check(*tuple(map(int, sys.stdin.readline().split())))
if ret:
    print('Yay!')
else:
    print(':(')

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

print(s)

Solution (Python):


import os
import sys


def solution(A, B):
    if A>8 or B>8:
        return ":("
    return "Yay!"
    
if __name__ == '__main__':
    
    bnm = raw_input().split()

    A = int(bnm[0])

    B = int(bnm[1])

    result = solution(A,B)

    print str(result)

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

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

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

print(s)

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

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

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

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

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

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

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

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

Solution (Python):





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

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

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

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

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

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

if a[0] <= 8 and a[1] <= 8:
    print('Yay!')
else:
    print(':(')

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

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

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

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

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


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

Solution (Python):
ip = input().split()
usdata = []
usdata.append(int(ip[0]))
usdata.append(int(ip[1]))
flag = 0

for i in usdata:
    if i >= 9:
        flag = 1
    else:
        pass

if flag == 1:
    print(":(")
else:
    print("Yay!")

Solution (Python):
a, b = (int(i) for i in input().split())
if a < 9 and b < 9:
    print('Yay!')
else:
    print(':(')

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

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

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

Solution (Python):
input_line = input().split()

cake_a = int(input_line[0])
cake_b = int(input_line[1])

if cake_a > 8 or cake_b > 8:
    print(":(")
else:
    print("Yay!")

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

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

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

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

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

x = 16 - min(A, B) * 2
y = max(A, B) - min(A, B)
if y * 2 <= x:
    print("Yay!")
else:
    print(":(")

Solution (Python):
a = map(int, raw_input().split())

if a[0]<=8 and a[1]<=8:
	print "Yay!"
else:
	print ":("

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

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

Solution (Python):
A,B=[int(a) for a in input().split()]
if A>8 or B>8 :
   print(":(")
else:
   print("Yay!")

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

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

Solution (Python):
a,b = (int(i) for i in input().split())

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

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

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

Solution (Python):

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

Solution (Python):
a, b = [int(x) for x in raw_input().split()]

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

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

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