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