*L,=map(int,input().split()) print([":-)",":-("][sum(L[::2])%2])