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