a=list(map(int,input().split())) print(":-)" if sum(a[i] for i in range(len(a)) if i%2==1)%2==0 else ":-(")