a,b,c,d,e,f = map(int,input().split()) g = a+c+e print(":-)" if g%2==0 else ":-(")