Given an array , sorted in ascending order and containing integers. Determine whether there exists a pair of numbers , where , such that their sum is equal to .
The first line contains two integers and . The second line contains non-negative integers, each of which is not greater than .
Print "YES" if such a pair of elements exists, and "NO" otherwise.