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 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
import math


sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))

A,B = inm()

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())
print("Yay!") if A<=8 and B<=8 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):
def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


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


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

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

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

Solution (Python):
n,m = [int(x) for x in input().split()]
if n < 9 and m < 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):



from functools import reduce


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

def main():
    a,b = map(int,input().split())
    print('{}'.format(solve(a,b)))




if __name__ == '__main__':
  main()

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys


def input(): return sys.stdin.readline().strip()
def I(): return int(input())
def LI(): return list(map(int, input().split()))
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def S(): return input()
def LS(): return input().split()


INF = float('inf')

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

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

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

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

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

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

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

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

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

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


def get_input() -> tuple:
    """
    標準入力を取得する.

    Returns:\n
        tuple: 標準入力
    """
    A, B = list(map(int, input().split()))

    return A, B


def main(A: int, B: int) -> None:
    """
    メイン処理.

    Args:\n
        A (int): 切れ(1 <= A <= 16)
        B (int): 切れ(1 <= B <= 16)
    """
    
    ans = str()
    if (A <= 8) and (B <= 8):
        ans = "Yay!"
    else:
        ans = ":("

    
    print(ans)


if __name__ == "__main__":
    
    A, B = get_input()

    
    main(A, B)

Solution (Python):


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


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

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

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

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

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    A, B = map(int, readline().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())
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):
print([":(", "Yay!"][max(list(map(int, input().split()))) <= 8])

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

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

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

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

Solution (Python):

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


def main():
    print('Yay!' if all(map(lambda x:True if int(x)<9 else False, input().split())) 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):
a, b = map(int, input().split())
if a <= 16 /2 and b <= 16 / 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):
a,b=map(int,input().split())
if a>8 or b>8:
  print(":(")
else:
  print("Yay!")

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x = input()
y = x.split()
a = int(y[0])
b = int(y[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!' 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())
ans="Yay!"
if A>8 or B>8:
    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 or b>8:
    print(":(")
else:
    print("Yay!")

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

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

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

Solution (Python):
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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


if __name__ == '__main__':
    main()

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

Solution (Python):

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

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

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

    return


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):
print(["Yay!", ":(", ":("][sum([int(x) > 8 for x in input().split()])])

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

Solution (Python):
a, b = map(int, input().split())
if a >= 9 or b >= 9:
    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 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):
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import product, combinations,permutations
from copy import deepcopy
import sys
sys.setrecursionlimit(4100000)



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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n,k=map(int,input().split())
if abs(n-k)>2:
  print(":(")
else:
  print("Yay!")

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

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

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

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().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Solution (Python):
from sys import stdin
nii=lambda:map(int,stdin.readline().split())
lnii=lambda:list(map(int,stdin.readline().split()))

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

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

Solution (Python):
def f(a,b): return a <= 8 and b <= 8
a,b = map(int, raw_input().split())
print 'Yay!' if f(a,b) 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())
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<=8and b<=8else":(")

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

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

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

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

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

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

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

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

a, b = map(int, readline().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 and b <= 8:
    print('Yay!')
else:
    print(':(')

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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


if __name__ == "__main__":
    solve()

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

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

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

Solution (Python):
A,B = list(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(_) for _ in input().split()]

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

print(ans)

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

if not (1 <= A <= 16 and 1 <= B <= 16 and (A + B <= 16)) :
    sys.exit()

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

Solution (Python):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

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

arr = ['a']
A = A - 1
for i in range(1,16):
  if arr[-1] == 'a':
    if B >= 1:
      B = B-1
      arr.append('b')
    elif C >= 1:
      C = C-1
      arr.append('c')
  elif arr[-1] == 'b':
    if A >= 1:
      A = A-1
      arr.append('a')
    elif C >= 1:
      C = C-1
      arr.append('c')
  elif arr[-1] == 'c':
    if A >= 1:
      A = A-1
      arr.append('a')
    elif B >= 1:
      B = B-1
      arr.append('b')
    elif C >= 1:
      C = C-1
      arr.append('c')
if len(arr) == 16:
  print("Yay!")
else:
  print(":(")

Solution (Python):
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_list(N): return [s_list() for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()
    print('Yay!' if a <=8 and b <= 8 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):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
def gcd(*numbers): reduce(math.gcd, numbers)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
count = 0
ans = 0

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

if __name__ == '__main__':
    main()