s=eval(input());print((':('*(len(s)>3or'9'in s)or'Yay!'))
print((':('*(len(s:=eval(input()))>3or'9'in s)or'Yay!'))
s = eval(input())
print((":(" * (len(s) > 3 or "9" in s) or "Yay!"))

print((":(" * (len(s := eval(input())) > 3 or "9" in s) or "Yay!"))

-s = eval(input()) -print((":(" * (len(s) > 3 or "9" in s) or "Yay!")) +print((":(" * (len(s := eval(input())) > 3 or "9" in s) or "Yay!"))