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