L = list(map(int,input().split())) sum = 0 for i in range(3): sum = L[2*i] % 2 if sum % 2 == 0: ans = ":-)" elif sum % 2 != 0: ans = ":-(" print(ans)