/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 100 点
問題文
10^{100} 行 10^{100} 列のマス目があります。
以下では、上から i 行目かつ左から j 列目のマスをマス (i,j) と表します。
マス目のうち、マス (P,Q) を一番左上のマスとした 100\times 100 マスの領域のみが黒く塗られており、それ以外のマスは白く塗られています。
マス (X,Y) が黒く塗られているか判定してください。
制約
- 1 \leq P,Q,X,Y \leq 10000
- P,Q,X,Y は整数
入力
入力は以下の形式で標準入力から与えられる。
P Q X Y
出力
マス (X,Y) が黒く塗られているならば Yes を、そうでないならば No を出力せよ。
入力例 1
3 3 5 10
出力例 1
Yes
マス (3,3) を最も左上のマスとする 100\times 100 マスの領域が黒く塗られています。
マス (5,10) はこの領域に含まれているため、Yes を出力します。
入力例 2
5 5 10 1000
出力例 2
No
マス (5,5) を最も左上のマスとする 100\times 100 マスの領域が黒く塗られています。
マス (10,1000) はこの領域に含まれていないため、No を出力します。
入力例 3
1 2 1 1
出力例 3
No
マス (1,2) を最も左上のマスとする 100\times 100 マスの領域が黒く塗られています。
マス (1,1) はこの領域に含まれていないため、No を出力します。
Score : 100 points
Problem Statement
There is a grid with 10^{100} rows and 10^{100} columns.
In what follows, the cell at the i-th row from the top and j-th column from the left is denoted as cell (i,j).
In this grid, only the 100\times 100 region with cell (P,Q) as the top-left cell is painted black, and all other cells are painted white.
Determine whether cell (X,Y) is painted black.
Constraints
- 1 \leq P,Q,X,Y \leq 10000
- P,Q,X,Y are integers.
Input
The input is given from Standard Input in the following format:
P Q X Y
Output
If cell (X,Y) is painted black, print Yes; otherwise, print No.
Sample Input 1
3 3 5 10
Sample Output 1
Yes
The 100\times 100 region with cell (3,3) as the top-left cell is painted black.
Cell (5,10) is included in this region, so print Yes.
Sample Input 2
5 5 10 1000
Sample Output 2
No
The 100\times 100 region with cell (5,5) as the top-left cell is painted black.
Cell (10,1000) is not included in this region, so print No.
Sample Input 3
1 2 1 1
Sample Output 3
No
The 100\times 100 region with cell (1,2) as the top-left cell is painted black.
Cell (1,1) is not included in this region, so print No.