L = list(map(int,input().split())) c = 0 for i,l in enumerate(L) : if i % 2 == 0 : c += l print(":-)" if c % 2 == 0 else ":-(")