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