#S=input()

#N=int(input())

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 and B<9:

    print("Yay!")

else:

    print(":(")

# S=input()
# N=int(input())
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 and B < 9:
    print("Yay!")
else:
    print(":(")

-# S=input() -# N=int(input()) -if A <= 8 and B <= 8: +if A < 9 and B < 9: