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