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