A - Vanishing Pitch 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 100

問題文

高橋君と青木君が野球をしています。高橋君はピッチャー、青木君はバッターです。
高橋君は消える魔球を投げることができます。高橋君が投げる消える魔球は、速さ V \, \mathrm{m / s} で等速直線運動をし、投げた瞬間から T 秒後から S 秒後まで (両端を含む) 消えています。消えている間もボールは移動を続けます。
ボールが高橋君のもとからちょうど D \, \mathrm{m} 離れたときにボールが消えていないならば、青木君はボールを打つことができます。消えているなら打つことはできません。
青木君は高橋君のボールを打つことができますか ?

制約

  • 1 \le V \le 1000
  • 1 \le T \lt S \le 1000
  • 1 \le D \le 1000
  • 入力は全て整数

入力

入力は以下の形式で標準入力から与えられる。

V T S D

出力

青木君がボールを打つことができるなら Yes を、できないなら No を出力せよ。


入力例 1

10 3 5 20

出力例 1

Yes

ボールが高橋君からちょうど 20 \, \mathrm{m} 離れるのは、高橋君がボールを投げてから 2 秒後です。
一方でボールが消えるのは、高橋君がボールを投げてから 3 秒後から 5 秒後まで (両端含む) なので、青木君はボールを打つことができます。


入力例 2

10 3 5 30

出力例 2

No

投げてからちょうど T 秒後やちょうど S 秒後もボールは消えていることに注意してください。
この場合、ボールが D \, \mathrm{m} 離れるのは高橋君が投げてからちょうど T 秒後なので、ボールは消えており、青木君はボールを打つことができません。

Score : 100 points

Problem Statement

Takahashi and Aoki are playing baseball. Takahashi is the pitcher, and Aoki is the batter.
Takahashi can throw an invisible pitch. When he throws it, the ball moves linearly at a constant speed V \, \mathrm{m / s}, and it becomes invisible between the moment T seconds after throwing and the moment S seconds after throwing (inclusive). The ball keeps moving when it is invisible.
If the ball is not invisible at the moment the ball is exactly D \, \mathrm{m} away from Takahashi, Aoki can hit the ball. Otherwise, he cannot hit it. Can Aoki hit the ball?

Constraints

  • 1 \le V \le 1000
  • 1 \le T \lt S \le 1000
  • 1 \le D \le 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

V T S D

Output

If Aoki can hit the ball, print Yes; otherwise, print No.


Sample Input 1

10 3 5 20

Sample Output 1

Yes

The ball is exactly 20 \, \mathrm{m} away from Takahashi at 2 seconds after throwing.
On the other hand, the ball becomes invisible between 3 and 5 seconds (inclusive) after throwing, so Aoki can hit the ball.


Sample Input 2

10 3 5 30

Sample Output 2

No

Note that the ball is also invisible at T seconds and S seconds after throwing.
Here, the ball is exactly D \, \mathrm{m} away from Takahashi at T seconds after throwing, so the ball is invisible and cannot be hit by Aoki.