P26049 [AtCoder] Integer Preference
入门
题目描述

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?

Input

Input is given from Standard Input in the following format:
A B C D

Output

Print Yes or No.

Constraints

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

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

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
10 30 20 40
样例输出
Yes