B - Integer Preference Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

Score : 200 points

Problem Statement

Snuke likes integers that are greater than or equal to A, and less than or equal to B. Takahashi likes integers that are greater than or equal to C, and less than or equal to D.

Does there exist an integer liked by both people?

Constraints

  • 0 \leq A \leq B \leq 10^{18}
  • 0 \leq C \leq D \leq 10^{18}
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

Print Yes or No.


Sample Input 1

10 30 20 40

Sample Output 1

Yes

For example, both like 25.


Sample Input 2

10 20 30 40

Sample Output 2

No

配点 : 200

問題文

すぬけ君は A 以上 B 以下の整数が好きです。 高橋君は C 以上 D 以下の整数が好きです。

どちらも好きな整数は存在しますか?

制約

  • 0 \leq A \leq B \leq 10^{18}
  • 0 \leq C \leq D \leq 10^{18}
  • 入力は全て整数である。

入力

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

A B C D

出力

Yes または No と出力せよ。


入力例 1

10 30 20 40

出力例 1

Yes

たとえば、どちらも 25 が好きです。


入力例 2

10 20 30 40

出力例 2

No