input = input().split()



if int(input[0])<=8 and int(input[1])<=8:

    print("Yay!")

else:

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



if a <= 8 and b <= 8:

    print("Yay!")

else:

    print(":(")

input = input().split()
if int(input[0]) <= 8 and int(input[1]) <= 8:
    print("Yay!")
else:
    print(":(")

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

-input = input().split() -if int(input[0]) <= 8 and int(input[1]) <= 8: +a, b = list(map(int, input().split())) +if a <= 8 and b <= 8: