AB = [int(i) for i in input().split()] A = 0 B = 0 F = True for x in AB: if F: A += x else: B += x F = not F if A % 2 == 0 and B % 2 == 0: print(':-)') else: print(':-(')