n = input() m = n.split() p = [int(i) for i in m] q = p[0]+p[2]+p[4] r = q % 2 if r == 1: print(":-(") else: print(":-)")