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