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