Problem:
 Score: 100 points    Problem Statement  E869120's and square1001's 16 -th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan-shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?      Constraints   A and B are integers between 1 and 16 (inclusive).  A+B is at most 16 .         Input  Input is given from Standard Input in the following format:  A  B       Output  If both E869120 and square1001 can obey the instruction in the note and take desired numbers of pieces of cake, print Yay! ; otherwise, print :( .        Sample Input 1 5 4      Sample Output 1 Yay!  Both of them can take desired number of pieces as follows:       Sample Input 2 8 8      Sample Output 2 Yay!  Both of them can take desired number of pieces as follows:       Sample Input 3 11 4      Sample Output 3 :(  In this case, there is no way for them to take desired number of pieces, unfortunately.

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

a, b = map(int, sys.stdin.readline().split())

def main():
    return 'Yay!' if a <= 8 and b <= 8 else ':('

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())
if a > b:
    a, b = b, a

def main():
    d  = b - a
    if d <= 1:
        return 'Yay!'
    elif 16 - a * 2 >= d * 2:
        return 'yay!'
    else:
        return ':('

if __name__ == '__main__':
    ans = main()
    print(ans)

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

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

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

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

Solution (Python):


import sys
from collections import deque

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

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

print(out)

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

ans = ":("

if A < 9 and B < 9:
    ans = "Yay!"

print(ans)

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

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

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

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

import sys
input = sys.stdin.readline


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

Solution (Python):
import sys

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

Solution (Python):
lo = input()
num = lo.split(" ")
A = int(num[0])
B = int(num[1])
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() )
print( [ ":(", "Yay!" ][ A <= 8 and B <= 8 ] )

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    if a<=8 and b<=8:
        print('Yay!')
    else:
        print(':(')
if __name__ == '__main__':
    do()

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

a = 16 - 2*min(A, B) + 1
b = max(A,B) - (min(A,B)-1)

if b<=(a/2 +1):
    print("Yay!")
else:
    print(":(")

Solution (Python):
a = input()
a = a.split()
b = int(a[1])
a = int(a[0])
if a < 9 and a > 0 and b < 9 and b > 0:
    print("Yay!")
else:
    print(":(")

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

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

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

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

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

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

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

Solution (Python):
A, B = map(int, input().split(" "))
N = 8
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
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Solution (Python):

import sys


def solve(A: int, B: int):
    if 16 - 2 * min(A, B) >= 2 * abs(A - B):
        print("Yay!")
    else:
        print(":(")


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 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 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 examA():
    A, B = LI()
    ans = "Yay!"
    if A>8 or B>8:
        ans = ":("
    print(ans)




import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

import math



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

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

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 = 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=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 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 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 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 1<=a<=8 and 1<=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 = tuple(int(num) for num in input().split())

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

Solution (Python):
from sys import stdin
import fractions

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

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

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

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

print(ans)

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

Solution (Python):
import sys
a, b = input().split(' ')
print(':(' if int(a) > 8 or int(b) > 8 else '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 abs(A-B)<=1:
  ans="Yay!"
else:
	ans=":( "
print(ans)

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

Solution (Python):

import sys
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
mod = 10**9+7

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

Solution (Python):
print("Yay!" if all(int(i) <= 8 for i in 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):



import sys













def main():
    a, b = (int(x) for x in sys.stdin.readline().split())
    if abs(a - b) <= 1:
        ans = 'Yay!'
    else:
        more_eat = max(a, b) - (min(a, b) + 1)
        remainder = 16 - (min(a, b) * 2 + 1)
        
        if more_eat <= remainder // 2:
            ans = 'Yay!'
        else:
            ans = ':('

    print(ans)

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

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

Solution (Python):

a, b = [int(s) for s 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 max(a, 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())
print("Y:a(y !"[a > 8 or b > 8::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())
print('Yay!' if a<=8 and b<=8 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):
n = [int(i) for i in input().split()]
flag = True
if(n[0]>8):
  flag = False
elif(n[1]>8):
  flag = False
if(flag == True):
  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 or b>8:
    print(":(")
else:
    print("Yay!")

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

Solution (Python):
a,b = map(int,input().split())
if a<=8 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<9 and b<9 else ':(')

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

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

Solution (Python):
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 or a<0 or b<0:
  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
read = sys.stdin.buffer.read
input = sys.stdin.buffer.readline
inputs= sys.stdin.buffer.readlines






















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

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

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

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

if a<=8 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 = raw_input().split()

if int(a_b[0]) > 8 or int(a_b[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 = input().split()
a = int(a)
b = int(b)

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

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

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

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

Solution (Python):

if __name__ == '__main__':

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

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

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

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

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 <= 8 and b <= 8 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())
result = None

if a > 8:
    result = False
elif b > 8:
    result = False

if result == False:
    print(":(")
else:
    print("Yay!")

Solution (Python):
YES = 'Yay!'
NO = ':('

takes = map(int, input().split())

p = len(tuple(filter(lambda x: 0 <= x <= 8, takes)))

print(YES if p == 2 else NO)

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

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

print(ans)

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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


if __name__ == "__main__":
    resolve()

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 = list(map(int,input().split()))
A=a[0]
B=a[1]

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

Solution (Python):

A, B = map(int, open(0).read().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<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());print('Yay!'if A<9and B<9else ':(')

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

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

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

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

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

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

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

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

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

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

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

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

input = sys.stdin.readline


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


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

if __name__ == "__main__":
    main()

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    print("Yay!" if a <= 8 and b <= 8 else ":(")


if __name__ == '__main__':
    slove()

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

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