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