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


from sys import stdout
from bisect import bisect_left as binl
from copy import copy, deepcopy
from collections import defaultdict


mod = 1


def intin():
    input_tuple = input().split()
    if len(input_tuple) <= 1:
        return int(input_tuple[0])
    return tuple(map(int, input_tuple))


def intina():
    return [int(i) for i in input().split()]


def intinl(count):
    return [intin() for _ in range(count)]


def modadd(x, y):
    global mod
    return (x + y) % mod


def modmlt(x, y):
    global mod
    return (x * y) % mod


def lcm(x, y):
    while y != 0:
        z = x % y
        x = y
        y = z
    return x


def combination(x, y):
    assert(x >= y)

    if y > x // 2:
        y = x - y

    ret = 1

    for i in range(0, y):
        j = x - i
        i = i + 1

        ret = ret * j
        ret = ret // i

    return ret


def get_divisors(x):
    retlist = []
    for i in range(1, int(x**0.5) + 3):
        if x % i == 0:
            retlist.append(i)
            retlist.append(x // i)
    return retlist


def get_factors(x):
    retlist = []
    for i in range(2, int(x**0.5) + 3):
        while x % i == 0:
            retlist.append(i)
            x = x // i
    retlist.append(x)
    return retlist


def make_linklist(xylist):
    linklist = {}
    for a, b in xylist:
        linklist.setdefault(a, [])
        linklist.setdefault(b, [])
        linklist[a].append(b)
        linklist[b].append(a)
    return linklist


def calc_longest_distance(linklist, v=1):
    distance_list = {}
    distance_count = 0
    distance = 0
    vlist_previous = []
    vlist = [v]
    nodecount = len(linklist)

    while distance_count < nodecount:
        vlist_next = []
        for v in vlist:
            distance_list[v] = distance
            distance_count += 1
            vlist_next.extend(linklist[v])
        distance += 1
        vlist_to_del = vlist_previous
        vlist_previous = vlist
        vlist = list(set(vlist_next) - set(vlist_to_del))

    max_distance = -1
    max_v = None
    for v, distance in distance_list.items():
        if distance > max_distance:
            max_distance = distance
            max_v = v

    return (max_distance, max_v)


def calc_tree_diameter(linklist, v=1):
    _, u = calc_longest_distance(linklist, v)
    distance, _ = calc_longest_distance(linklist, u)
    return distance





def main():
    a, b = intin()

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

Solution (Python):


import sys                                                      
sys.setrecursionlimit(10**6)                                    
from collections import deque, Counter                          
from itertools   import accumulate, permutations, combinations  
from operator    import itemgetter                              
from bisect      import bisect_left, bisect_right, bisect       
from heapq       import heappop, heappush                       
from fractions   import gcd                                     
from math        import ceil, floor, sqrt, cos, sin, tan, pi    
from copy        import deepcopy                                
import numpy         as np                                      


def main():
    
    im = InputManager()
    
    a, b = im.inputMultiple()
    
    if a > 8 or b > 8:
        print(":(")
    else:
        print("Yay!")
    

    
    return


class InputManager(object):
    def __init__(self):
        pass

    @staticmethod
    def inputSingle(dtype=int):
        return dtype(input())
    
    @staticmethod
    def inputMultiple(dtype=int, aslist=False):
        if aslist:
            return list(map(dtype, input().split()))
        else:
            return map(dtype, input().split())

    @staticmethod
    def input2D(h, dtype=int):
        return [list(map(dtype, input().split())) for i in range(h)]


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

Solution (Python):
b, c = map(int, input().split())
if(max(b,c) > (16 / 2)):
  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())
print("Yay!") if A < 9 and B < 9 else print(":(")

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


def input():
    return sys.stdin.readline()[:-1]







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):
xs = map(int, input().split())
check= all(x <= 8 for x in xs)
print ("Yay!" if check else ":(")

Solution (Python):
xs = map(int, input().split())
test = all(x <= 8 for x in xs)
print ("Yay!" if test else ":(")

Solution (Python):


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

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())
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):
print(":(" if max(map(int, input().split())) > 8 else "Yay!")

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

if __name__=='__main__':
    main()

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

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

Solution (Python):
from sys import stdin

A, B = stdin.readline().rstrip().split()

if (int(A) <= 8) & (int(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 ':(')

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

Solution (Python):

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

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

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

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

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


print(ans)

Solution (Python):

import numpy as np
import math
import re
import functools

n = input()
n = re.split(" ",n)

a = int(n[0])
b = int(n[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):
A, B = list(map(int, input().split()))
print(':(' if (A >= 9 or B >= 9) else 'Yay!')

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

Solution (Python):
A, B = list(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 < 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):

import numpy as np
import math
import re
import functools

n = input()
n = re.split(" ",n)

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

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

Solution (Python):
num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

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

Solution (Python):
a, b = list(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
input = sys.stdin.readline

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

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

Solution (Python):
a, b = [int(c) for c 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_str,b_str=input().split()
if int(a_str)<=8 and int(b_str)<=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):
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):
num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

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

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

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):
x = input().split()
x = [int(n) for n in x]
if x[0] <= 8 and x[1] <= 8:
    print("Yay!")
else:
    print(":(")

Solution (Python):
import sys
import numpy as np

readInt = lambda: int(sys.stdin.readline())
readIntN = lambda: [int(v) for v in sys.stdin.readline().split(' ')]

a, b = readIntN()
ret = 'Yay!' if max(a, b) <= 8 else ':('
print(ret)

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


a, b = inl()
print('Yay!' if a*2 <= 16 and b*2 <= 16 else ':(')

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

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

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

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

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

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

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

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

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

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

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

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

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

if(A - B > 1 or B - A > 1):
  print(':(')

if((A - B) == 0 or (A - B) == 1 or (B - A) == 0 or (B - A) == 1):
  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>=9 or b>=9:
  print(':(')
else:
  print('Yay!')

Solution (Python):



import math


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

Solution (Python):
N, M = map(int,input().split())
if N <= 8 and M <= 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):
print('Yay!' if max([int(i) for i in input().split()]) <= 8 else ':(')

Solution (Python):


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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
print(["Yay!", ":("][not(max(map(int, input().split()))<=8)])

Solution (Python):

import sys
INF = float("inf")


def solve(A: int, B: int):
    if A <= 8 and B <= 8:
        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 0<=A<=8 and 0<=B<=8:
  print("Yay!")
else:
  print(":(")

Solution (Python):

import sys

input_nums = [int(x) for x in sys.stdin.readline().split()]

if len(input_nums) > 2 :
	sys.exit("illegal input")
    
if (sum(input_nums)) > 16:
  sys.exit("illegal input")
  
if (min(input_nums)) < 1:
  sys.exit("illegal input")

max_num = max(input_nums)
if max_num > 16:
  sys.exit("illegal input")
elif max_num > 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())
print("Yay!" if max(A,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<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):

import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
A, B = tuple(li())
if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):
cake_a,cake_b = (int(x) for x in input().split())

if cake_a <= 8 and cake_b <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
import sys

input = sys.stdin.readline

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

A, B = MAP()

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

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

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

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

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

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

Solution (Python):
a,b=map(int,input().split());print('Y:a(y !'[a//9|b//9::2])

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

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

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

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

Solution (Python):
M=max([int(x) for x in input().split()])
print("Yay!" if M<=8 else ":(")

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

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

Solution (Python):
A,B = [int(x) for x 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):
if max([int(a) for a in input().split()]) < 9:
    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 <= 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!")
	exit()
print(":(")

Solution (Python):
a, b = [int(elem) for elem in 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) & (b <= 8):
    print("Yay!")
else:
    print(":(")

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

if abs(a-b) < 2:
    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=(int(x) for x in input().split())
if a>=9:
  print(':(')
elif b>=9:
  
  print(':(')
else:
  print('Yay!')

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

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