a1, _, a2, __, a3, ___ = map(int, input().split()) if ((a1 % 2) + (a2 % 2) + (a3 % 2)) % 2: print(":-(") else: print(":-)")