2SUM Problem#276

2SUM Problem

1 second
128 megabytes
Easy (≈1000)

A sorted array of elements is given. Find a pair (a_i, a_j) in this array such that a_i + a_j = x (where i < j).

Input

The first line contains integers (n \le 10^5) and (x \le 10^6). The next line contains elements a_0, a_1, a_2, ..., a_{n-1} in non-decreasing order. All numbers are not greater than 10^6.

Output

Output YES if there exists such a pair satisfying the condition above, otherwise output NO.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading