A = [int(i) for i in input().split()]

if max(A) <= 8:

    print('Yay!')

else:

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

print(('Yay!' if A <= 8 and B <= 8 else ':('))
A = [int(i) for i in input().split()]
if max(A) <= 8:
    print("Yay!")
else:
    print(":(")

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

-A = [int(i) for i in input().split()] -if max(A) <= 8: -    print("Yay!") -else: -    print(":(") +A, B = list(map(int, input().split())) +print(("Yay!" if A <= 8 and B <= 8 else ":("))