ln = input().split() it = iter(ln) s = 0 for a in it: a = int(a) b = int(next(it)) s += a ** b print(s) if s % 2 == 0: print(":-)") else: print(":-(")