atcoder#TENKA12019A. On the Way
On the Way
Score : points
Problem Statement
There are three houses on a number line: House , and , with coordinates , and , respectively.
Print Yes
if we pass the coordinate of House on the straight way from House to House without making a detour, and print No
otherwise.
Constraints
- , and are distinct integers.
Input
Input is given from Standard Input in the following format:
Output
Print Yes
if we pass the coordinate of House on the straight way from House to House without making a detour, and print No
otherwise.
3 8 5
Yes
We pass the coordinate on the straight way from the house at coordinate to the house at coordinate .
7 3 1
No
10 2 4
Yes
31 41 59
No