#abc296c. [abc296_c]Gap Existence
[abc296_c]Gap Existence
Problem Statement
You are given a sequence of numbers: .
Determine whether there is a pair with such that .
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if there is a pair with such that , and No
otherwise.
Sample Input 1
6 5
3 1 4 1 5 9
Sample Output 1
Yes
We have .
Sample Input 2
6 -4
-2 -7 -1 -8 -2 -8
Sample Output 2
No
There is no pair such that .
Sample Input 3
2 0
141421356 17320508
Sample Output 3
Yes
We have .