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