Integer Preference SOLUTION ACL CONTEST

Integer Preference SOLUTION

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

A

B

10

18

0

C

D

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 

Copy

10 30 20 40

Sample Output 1 

Copy

Yes

For example, both like 

25

.

 

Sample Input 2 

Copy

10 20 30 40

Sample Output 2 

Copy

No

Leave a Comment

close
error: Content is protected !!