l=input().split() l=[int(i) for i in l] if (l[0]+l[2]+l[4])%2==0: print(":-)") else: print(":-(")