AB = [int(i) for i in input().split()] s = 0 b = 0 for x in len(AB): if x % 2 == 0: b = x else: s += b ** x if s % 2 == 0: print(':-)') else: print(':-(')