n=list(map(int,input().split())) cnt=0 for i in range(0,6,2): if n[i]%2==1: cnt+=1 if cnt%2==0: print(":-)") else: print(":-(")