✅ 정답 공개
nums = list(map(int, input().split()))
target = int(input())
left, right = 0, len(nums) - 1
result = 'NONE'
while left < right:
s = nums[left] + nums[right]
if s == target:
result = f'{nums[left]} {nums[right]}'
break
elif s < target:
left += 1
else:
right -= 1
print(result)