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):
inp = input().split()


for i in range(len(inp)):
    inp[i] = int(inp[i])

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

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

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

Solution (Python):
A,B=map(int, input().rstrip().split())
ans=str()
if max(A,B)<9:
    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):
def main():
    A, B = map(int, input().split())
    if A > 8 or B > 8:
        print(":(")
    else:
        print("Yay!")

if __name__ == "__main__":
    main()

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

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

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

c = a + b

if c <= 16 and 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):
l=input().split()
a=int(l[0])
b=int(l[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 or B>8):
    print(":(")
else:
    print("Yay!")

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

for i in range(16):
    if i % 2 == 0 and A > 0:
        A -= 1
    elif i % 2 == 1 and B > 0:
        B -= 1

if A == 0 and 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 = [int(i) for i 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 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())

mi = min(a,b)
ma = max(a,b)

if(ma - mi <= 8-mi):
    print('Yay!')
else:
    print(':(')

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

pre = 0

if A < B:
  big = B
  small = A
else:
  big = A
  small = B

if A + B > 16:
  print(":(")
else:
  for i in range(16):
    if pre == 0:
      big -= 1
      pre = 1
    else:
      small -= 1
      pre = 0
if small <= 0 and big <= 0:
  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())

mi = min(a,b)
ma = max(a,b)

if(ma - mi <= 8-mi):
    print('Yay!')
else:
    print(':(')

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

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

big   = max(A,B)
small = min(A,B)
if (16 - 2*small)//2 >= big -small:
  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 = map(int, raw_input().split())
a = l[0]
b = l[1]

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

mi = min(a,b)
ma = max(a,b)

if(ma - mi <= 8-mi):
    print('Yay!')
else:
    print(':(')

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

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

for i in range(65536*4+1):
  x = bin(i)[2:].zfill(a+b)

  if x.count('1') == a and x.count('0') == b and '00' not in x and '11' not in x:
    print("Yay!")
    exit(0)
print(":(")

Solution (Python):
a, b = tuple(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 A<9 and B<9:
 print("Yay!")
else:
 print(":(")

Solution (Python):

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

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

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

Solution (Python):

import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations

sys.setrecursionlimit(10000)


def read_int():
    return int(input())


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


def read_float():
    return float(input())


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


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A <= 8 and B <= 8:
        return 'Yay!'
    else:
        return ':('


def main():
    
    
    A, B = read_int_n()
    print(slv(A, B))


if __name__ == '__main__':
    main()

Solution (Python):
A, B = map(int, input().split())
count = 0
for i in range(16):
  if count == 0:
    A -= 1
    count += 1
  else:
    count -= 1
    B -= 1
if A <= 0 and 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 = (int(x) for x in input().split())
print('Yay!' if max(a, b) <= 8 else ':(')

Solution (Python):
def get_result(a, b):
    if(a > 8) or (b > 8):
        return False

    if a == 8:
        if b <= 8:
            return True
        else:
            return False

    if b == 8:
        if a <= 8:
            return True
        else:
            return False

    return True


x, y = (int(i) for i in input().split())

if get_result(x, y):
    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 m():
    a, b = map(int, input().split())
    if a <=8 and b <= 8:
        return "Yay!"
    return ":("

print(m())

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

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

Z = max(A,B)

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

y = 'Yay!'
n = ':('

if a <= 8 and b <= 8:
    print(y)
else:
    print(n)

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

Solution (Python):
from sys import exit, setrecursionlimit, stderr
from functools import reduce
from itertools import *
from collections import defaultdict
from bisect import bisect

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

def reads():
  return [int(x) for x in input().split()]

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

Solution (Python):
iA, iB = map(int, input().split())

if iA > 8:
    print (":(")
elif iB > 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 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=[int(i) for i in 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):
cakes = [int(i) for i in input().split()]

if cakes[0] > 8 or cakes[1] > 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().rstrip().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+B<=16 and 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 = 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):
import sys

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 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):
from sys import stdin, stdout
from math import sqrt
from collections import defaultdict


A, B = [int(x) for x in stdin.readline().strip().split()]
print("Yay!" if (A <= 8 and B <= 8) else ":(")

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

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

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 = 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 or B > 8:
	print(":(")
	exit()
if abs(A-B) > 2:
	print(":(")
	exit()
else:
	print("Yay!")

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

if (int(a) <= 8)and(int(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 = 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):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a,b = na()

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, b = [int(v) for v in input().rstrip().split()]

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

Solution (Python):
a, b = map(int, input().split())
ans = "Yay!"
if a > 8 or b > 8:
    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<=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("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:
    print(":(");
    exit()
if B > 8:
    print(":(");
    exit()
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 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 check(a,b):
    if a <= 8 and b <= 8:
        return 1
    else:
        return 0


if __name__ == "__main__":
    a,b = map(int, input().split(" "))
    result = [":(","Yay!"]

    print(result[check(a,b)])

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

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

Solution (Python):
import math
import numpy as np

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

Solution (Python):

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


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

if __name__ == "__main__":
        main()

Solution (Python):
from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def debug(*x): stderr.write(reduce(add,repr(x)).strip("()\',")+'\n')

a,b = f()

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

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

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

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

else:
    print('Yay!')

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

Solution (Python):
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
println = stdout.write

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

    if all((A <= 8, B <= 8)):
        println('Yay!\n')
    else:
        println(':(\n')

main()

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

Solution (Python):
list=input().rstrip().split() 
A=int(list[0]) 
B=int(list[1])
if max(A,B)>=9:
    print(':(')
else:
    print('Yay!')

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

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

Solution (Python):
a = list(map(int,input().split()))
if a[0] <= 8:
    if a[1] <= 8:
        print("Yay!")
    else:
        print(":(")
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):
import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

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

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

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

Solution (Python):
A, B = map(int, input().split())
if A <= 8 and B <= 8 and A + B:
	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 = input().split()

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

Solution (Python):
import sys

cin = sys.stdin



def line2N():
    return map(int, cin.readline().split())

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

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

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

Solution (Python):
import sys
import math
import itertools
from heapq import heapify, heappop, heappush
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque








def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_IL(): return LM(int,stdin)



def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))






def main():
    A,B = LI()
    
    ans = ""
    if A>8 or B>8:
        ans = ":("
    else:
        ans = "Yay!"

    print(ans)

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

Solution (Python):
import sys, math
from sys import stdin, stdout

rem = 10 ** 9 + 7
sys.setrecursionlimit(10 ** 6)
take = lambda: map(int, stdin.readline().split())


a,b=take()
if a<=8 and b<=8:
    print 'Yay!'
    exit()
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):
'''input
4 5
'''
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())

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 check(a,b):
    if a <= 8 and b <= 8:
        return 1
    else:
        return 0


if __name__ == "__main__":
    a,b = map(int, input().split(" "))
    result = [":(","Yay!"]

    print(result[check(a,b)])

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

Solution (Python):
import sys

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 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,raw_input().split())
if a > 8 or b> 8:
	print ':('
else :
	print 'Yay!'

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

rest = max(A, B) - min(A, B)

if (16 - (A + B)) / 2 >= rest:
    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(i) for i in input().split(' ')]

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

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


def ea(a, b):
    if a > 8 or b > 8:
        return False
    else:
        return True


if ea(A, 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):
'''input
4 5
'''
a,b = map(int,raw_input().split())
if a > 8 or b > 8 :
	print ":("
else:
	print "Yay!"

Solution (Python):

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

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

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

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

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


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

if __name__ == "__main__":
        main()

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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
AB=input()
AB=AB.rstrip().split(" ")
A=int(AB[0])
B=int(AB[1])

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

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

if int(n[0]) < 9 and int(n[1]) < 9:
    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(" "))
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

Solution (Python):


import math
import sys
import itertools
import numpy as np



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


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

Solution (Python):
list=input().rstrip().split() 
A=int(list[0]) 
B=int(list[1])
if max(A,B)>=9:
    print(':(')
else:
    print('Yay!')

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

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

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

Solution (Python):
lA=list(map(int,input().split()))
A=lA[0]
B=lA[1]
if((A<=8)&(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().split(" ")))


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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b = na()

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

Solution (Python):
from sys import stdin

A, B = map(int, stdin.readline().rstrip().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<9 and B<9:
  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())

res = max(A, B) - min(A, B)
if (res + A + B) > 16:
    print(':(')
else:
    print('Yay!')

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

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

    if A * 2 > 16 or B * 2 > 16:
        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):
def main():
    A, B = map(int, input().split())
    if A>8 or B>8:
        return ":("
    else:
        return "Yay!"

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

Solution (Python):
AB=input()
AB=AB.rstrip().split(" ")
A=int(AB[0])
B=int(AB[1])

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 = 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 < 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(':(')