a1, b1, a2, b2, a3, b3 = map(int, input().split()) if all([x % 2 == 0 for x in [a1, a2, a3]]): print(":-)") else: print(":-(")