/
Time Limit: 2 sec / Memory Limit: 1024 MiB
問題文
高橋君はスーパーマーケットに買い物に来ました。スーパーマーケットでは、玉ねぎが A 個、じゃがいもが B 個売られています。
高橋君は非常に思慮深いので、各食材について、自分がその食材を全て買い占めてしまうことになる場合、購入を諦めます。
高橋君は、玉ねぎを C 個、じゃがいもを D 個買うことができますか?
制約
- 1 \leq A,B,C,D \leq 100
- 入力は全て整数である
入力
入力は以下の形式で標準入力から与えられる。
A B C D
出力
玉ねぎを C 個、じゃがいもを D 個買うことができるならば Yes、できないならば No と出力せよ。
入力例 1
3 5 4 2
出力例 1
No
玉ねぎが 3 個しか売られていないため、4 個買うことはできません。
入力例 2
30 10 6 10
出力例 2
No
じゃがいもが 10 個売られていますが、10 個買うと全て買い占めてしまうことになるため、高橋君は購入を諦めます。
入力例 3
100 100 1 1
出力例 3
Yes
Problem Statement
Takahashi went shopping at a supermarket. The supermarket has A onions and B potatoes in stock.
Takahashi is so thoughtful that, for each vegetable, if buying the desired quantity would empty the stock, he decides not buying it.
Can Takahashi buy C onions and D potatoes?
Constraints
- 1 \leq A,B,C,D \leq 100
- All input values are integers.
Input
The input is given from Standard Input in the following format:
A B C D
Output
Print Yes if he can buy C onions and D potatoes, and No otherwise.
Sample Input 1
3 5 4 2
Sample Output 1
No
They sells only three onions, so he cannot buy four.
Sample Input 2
30 10 6 10
Sample Output 2
No
They sells ten potatoes, but buying ten will empty the stock, so he decides not buying them.
Sample Input 3
100 100 1 1
Sample Output 3
Yes