print((["Yay!", ":(", ":("][sum([int(x) > 8 for x in input().split()])]))

a, b = [int(x) for x in input().split()]

print((["Yay!", ":("][a > 8 or b > 8]))
print((["Yay!", ":(", ":("][sum([int(x) > 8 for x in input().split()])]))

a, b = [int(x) for x in input().split()]
print((["Yay!", ":("][a > 8 or b > 8]))

-print((["Yay!", ":(", ":("][sum([int(x) > 8 for x in input().split()])])) +a, b = [int(x) for x in input().split()] +print((["Yay!", ":("][a > 8 or b > 8]))