A = list(map(int, input().split())) if (A[0] + A[2] + A[4]) % 2 == 0: print(":-)") else: print(":-(")