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