w = list(map(int, input().split())) print(':-(' if sum(w[::2])%2 else ':-)')