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

if a>=9 or b>=9: print(':(')

else: print('Yay!')
a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:

  print('Yay!')

else:

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

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

-if a >= 9 or b >= 9: +if a <= 8 and b <= 8: +    print("Yay!") +else: -else: -    print("Yay!")