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



if a > 8 or b > 8:

	print(":(")

else:

	print("Yay!")



a, b = input().split()

a = int(a)

b = int(b)



if(a < 9 and b < 9):

  print('Yay!')

else:

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

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

-a, b = list(map(int, input().split())) -if a > 8 or b > 8: +a, b = input().split() +a = int(a) +b = int(b) +if a < 9 and b < 9: +    print("Yay!") +else: -else: -    print("Yay!")