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


 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())


 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  


a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654


char_list = list("abcd") 
"""

import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    A,B = map(int, sys.stdin.readline().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):
import os, sys, re, math

a,b = [int(s) for s 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 = input()
b, c = a.split()
if (int(b) <= 8 and int(c) <= 8) :
    print ("Yay!")
else:
    print (":(")

Solution (Python):
import os, sys, re, math

lines = sys.stdin.readlines()

(a, b) = lines[0].split()

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

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

Solution (Python):
a, b = map(int, raw_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())
print([':(','Yay!'][a<9 and b<9])

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):
n,m=map(int,input().split())
if n<9 and m <9:
  print('Yay!')
else:
  print(':(')

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    a, b = LI()
    if a <= 8 and b <= 8:
        print("Yay!")
    else:
        print(":(")
    return


def B():
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    

    
    

    
    
    
    
    
    
    
    
    
    INF = float("inf")

    
    MOD = 10**9+7
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    A, B = (int(_) for _ in 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=tuple(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 = list(map(int, input().strip().split(' ')))
if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
A,B = map(int, input().split())
if A <= 8:
    if B <= 8:
        print("Yay!")
    else:
        print(":(")
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())
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, input().split()))
if (a <= 8) and (b <= 8):
    print("Yay!")
else:
    print(":(")

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    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,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 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!",":("][a>8 or b>8])

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

Solution (Python):

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

if l[0] > 8 or l[1] > 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, 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):
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(x) for x in 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):
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=max(list(map(int,input().split())));print(':('if a>8 else'Yay!')

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

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

Solution (Python):
a = list(map(int,input().split()))
print("Yay!") if a[0]<=8 and a[1]<=8 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=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 <=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())

f = 1
if A > 8:
    f = 0
if B > 8:
    f = 0
if f:
    print('Yay!')
else:
    print(':(')

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

if x[0]<9 and x[1]<9:
	print("Yay!")
else:
	print(":(")

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

if x[0]<9 and x[1]<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):

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

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

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

Solution (Python):
x, y=map(int, input().split())
res='Yay!'
if x>8 or y>8:
	res=':('
print(res)

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):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, B = nl()

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

Solution (Python):
A, B = map(int, input().split())
if 16-min(A,B)*2 >= abs(A-B)*2:
    print("Yay!")
else:
    print(":(")

Solution (Python):

import sys


def solve(A: int, B: int):
    if A % 2 != 0 or B % 2 != 0:
        if A > 8 or B > 8:
            print(':(')
            return

    print('Yay!')
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)


if __name__ == '__main__':
    main()

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 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, raw_input().split())

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

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

if a<9 and b<9:
  print("Yay!")
elif a>8 or b>8:
  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 <= 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):
A,B = [int(i) for i in input().split()]
if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
def main():
    n = [int(i) for i in input().split()]
    if n[0] < 9 and n[1] < 9:
        print("Yay!")
    else:
        print(":(")


if __name__ == "__main__":
    main()

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

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

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

resolve()

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

Solution (Python):
a, b = map(int, raw_input().split())
slices = [0 for x in range(16)]
i = 0
while a != 0 and b != 0 and i < 15:
    slices[i] = 0
    slices[i + 1] = 1
    a -= 1
    b -=1
    i += 2

while a > 0 and i < 15:
    slices[i] = 0
    a -= 1
    i += 2
 
while b > 0 and i < 15:
    slices[i] = 1
    b -= 1
    i += 2

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

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

if(parameters[0] <= 8 and parameters[1] <= 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):


x, y = map(int, raw_input().split())

result = 'Yay!'
if y > 8 or x > 8:
    result = ':('

print result

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

if m > 8 or n > 8:
    print ":("
else: 
    print "Yay!"

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

if(m[0] > 8 or m[1]> 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):
a, b = map(int, raw_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):

import re
import bisect
from datetime import datetime as dt
import bisect
import math
import sys
input = sys.stdin.readline

def gcd(a, b):
    return math.gcd(a, b)

def lcm(a, b):
    return a * b / gcd(a, b)

class slist(list):
    def __init__(self, *args, **kw):
        list.__init__(self, *args, **kw)
        self.sort()

    def append(self, value):
        bisect.insort(self,value)

    def index_left(self, value):
        return bisect.bisect_left(self, value)


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

Solution (Python):

import sys


def solve(A: int, B: int):
    d = abs(A - B)
    r = 16 - A - B
    if d <= (r // 2):
        print("Yay!")
    else:
        print(":(")
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
print('Yay!' if all([x < 9 for x in map(int, input().split())]) 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 max(a, b) > 8:
  print(':(')
else:
  print('Yay!')

Solution (Python):
a, b = map(int, input().split())
if a < 9 > 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 max(A, B) <= 8:
    print('Yay!')
else:
    print(':(')

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

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

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


abc()

Solution (Python):
A, B = [int(ab) for ab in input().split()]
if (A<=8) and (B<=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):
ab = input().split()
ab = [int(ab[i]) for i in range(2)]
ab.sort()

a = ab[1]
b = ab[0]

if a > 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 > B:
    if A <= B * 2:
        print('Yay!')
    else:
        print(':(')
else:
    if B <= A * 2:
        print('Yay!')
    else:
        print(':(')

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

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

Solution (Python):
inp = input().split()
a = int(inp[0])
b = int(inp[1])

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

Solution (Python):
inp = input().split()
a = int(inp[0])
b = int(inp[1])

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

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

ans = a + b

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

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import numpy as np
import statistics
from statistics import mean, median,variance,stdev
import math

def main():
	A, B = map(int, input().split(" "))
	
	if 8 < A or 8 < B:
		print(":(")
		sys.exit()
		
	if A + B > 16:
		print(":(")
		sys.exit()
		
	print("Yay!")
	
if __name__ == "__main__":
	main()

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):
def f(A, B):
    C = 16 - min(A, B) * 2
    return C // 2 >= max(A, B) - min(A, B)


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

Solution (Python):
data = list(map(int,input().split()))
if abs(data[0]-data[1]) > 1:
        print(":(")
else:
        print("Yay!")

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

Solution (Python):


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

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

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 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 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, raw_input().split())
if A <= 8 and B <= 8: print 'Yay!'
else: print ':('

Solution (Python):
a, b = [ int(v) for v 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 <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
e,s = map(int, input().split())
if 8>=e and s<=8:
    print("Yay!")
elif 8<e or 8<s:
    print(":(")

Solution (Python):
a, b = map(int, input().split())
cake = 16
if cake / 2 >= a and cake / 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 <= 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):

ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    
    print(":(")
    
    
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if i % 2 == 0:
        Acnt -= 1
    else:
        Bcnt -= 1

if Acnt <= 0 and Bcnt <= 0:
    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())
maximum = 8

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

Solution (Python):

import sys


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

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

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

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 or 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,input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

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

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())
x = a + b
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):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b = f()
    if a<=8 and b<=8:
        print('Yay!')
    else:
        print(':(')

solve()

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

flg = 1 

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

Solution (Python):
a, b = input().split()
a, b = int(a), int(b)
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())
ma=max(a,b)
cnt=ma*2

if cnt<=16:
     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):

import sys


def solve(A: int, B: int):
    if max(A, B) > 8:
        ret = ':('
    else:
        ret = 'Yay!'
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

Solution (Python):

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

if l[0] > 8 or l[1] > 8:
    print(':(')
else:
    print('Yay!')