#TENKA12019A. On the Way

On the Way

Score : 100100 points

Problem Statement

There are three houses on a number line: House 11, 22 and 33, with coordinates AA, BB and CC, respectively. Print Yes if we pass the coordinate of House 33 on the straight way from House 11 to House 22 without making a detour, and print No otherwise.

Constraints

  • 0A,B,C1000\leq A,B,C\leq 100
  • AA, BB and CC are distinct integers.

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

Print Yes if we pass the coordinate of House 33 on the straight way from House 11 to House 22 without making a detour, and print No otherwise.

3 8 5
Yes

We pass the coordinate 55 on the straight way from the house at coordinate 33 to the house at coordinate 88.

7 3 1
No
10 2 4
Yes
31 41 59
No