A, B, C, D, E, F = map(int, input().split()) if A*C*E%2 == 0: print(":-)") else: print(":-(")