A, a, B, b, C, c = map(int, input().split()) if (A + B + C) % 2 == 0: print(":-)") else: print(":-(")