

Time Limit: 2 sec / Memory Limit: 1024 MiB
問題文
あなたは縦 X センチメートル、横 Y センチメートル、高さ Z センチメートルの直方体の箱をゴミとして捨てようとしています。
縦横高さのいずれかが S センチメートル以上であるものは粗大ゴミになります。あなたが捨てようとしている箱は粗大ゴミですか?
制約
- 1\leq X,Y,Z,S \leq 1000
- 入力は全て整数
入力
入力は以下の形式で標準入力から与えられる。
X Y Z S
出力
あなたが捨てようとしている箱が粗大ゴミならば Yes
、粗大ゴミでなければ No
を出力せよ。
入力例 1
10 20 30 100
出力例 1
No
縦横高さがいずれも 100 センチメートル未満であるため粗大ゴミではありません。
入力例 2
50 100 150 130
出力例 2
Yes
高さが 130 センチメートル以上であるため粗大ゴミです。
入力例 3
50 50 50 50
出力例 3
Yes
Problem Statement
You are going to throw away a rectangular cuboid of depth X centimeters, width Y centimeters, and height Z centimeters.
An item is regarded as bulky trash if its depth, width, or height is at least S centimeters. Is the item you are discarding bulky trash?
Constraints
- 1\leq X,Y,Z,S \leq 1000
- All input values are integers.
Input
The input is given from Standard Input in the following format:
X Y Z S
Output
Print Yes
if the item you are discarding is bulky trash, and No
otherwise.
Sample Input 1
10 20 30 100
Sample Output 1
No
Its depth, width, and height are all strictly less than 100 centimeters, so it is not bulky trash.
Sample Input 2
50 100 150 130
Sample Output 2
Yes
Its height is not less than 130 centimeters, so it is bulky trash.
Sample Input 3
50 50 50 50
Sample Output 3
Yes