def f(x): return x%2 == 0 a1, b1, a2, b2, a3, b3 = map(int, input().split()) if not f(a1) and not f(a2) and not f(a3): print(":-(") else: print(":-)")