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