m=sum(map(int,input().split()[::2])) print([":-)",":-("][m&1])