import sys sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): a1, _, a2, _, a3, _ = MI() if (a1 % 2 + a2 % 2 + a3 % 2) % 2: print(":-(") else: print(":-)") main()