a1, b1, a2, b2, a3, b3 = map(int, input().split()) if a1 % 2 == 0 and a2 % 2 == 0 and a3 % 2 == 0: print(":-)") else: print(":-(")