l = list(map(int,input().split())) o,e = 0,0 for i in range(3): if l[i*2]%2==0: e += 1 else: o += 1 if e==3 or o==2: print(':-)') else: print(':-(')