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

if(a <= 8 and b <= 8):

    print("Yay!")

else:

    print(":(")

line = eval(input())

A, B = [int(n) for n in line.split()]

if A > 8 or B > 8:

    print(":(")

else:

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

line = eval(input())
A, B = [int(n) for n in line.split()]
if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

-a, b = list(map(int, input().split())) -if a <= 8 and b <= 8: +line = eval(input()) +A, B = [int(n) for n in line.split()] +if A > 8 or B > 8: +    print(":(") +else: -else: -    print(":(")