#abc240c. [abc240_c]Jumping Takahashi
[abc240_c]Jumping Takahashi
Problem Statement
Takahashi is standing at the coordinate on a number line.
He will now perform jumps. In the -th jump , he moves or in the positive direction.
Is it possible for him to be at the coordinate after jumps?
Constraints
- $1 \\leq a_i \\lt b_i \\leq 100 \\, (1 \\leq i \\leq N)$
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If it is possible for Takahashi to be at the coordinate after jumps, print Yes
; otherwise, print No
.
Sample Input 1
2 10
3 6
4 5
Sample Output 1
Yes
By moving in the first jump and in the second jump, he can be at the coordinate .
Sample Input 2
2 10
10 100
10 100
Sample Output 2
No
He can be at the coordinate after the first jump, but not after all jumps.
Sample Input 3
4 12
1 8
5 7
3 4
2 6
Sample Output 3
Yes