nums = list(map(int, input().split())) As = [nums[0]%2 == 0, nums[2]%2 == 0, nums[4]%2 == 0] c = As.count(False) if c == 1 or c == 3: print(":-(") else: print(":-)")