n = [int(i) for i in input().strip().split(' ')] print([':-)', ':-('][sum([n[i] for i in range(0, len(n), 2)]) % 2])