Problem7816--ABC253 —— A - Median?

7816: ABC253 —— A - Median?

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Given integers $a, b, c$, determine if $b$ is the median of these integers.

Input

Input is given from Standard Input in the following format:
$a\ b\ c$

Output

If $b$ is the median of the given integers, then print Yes; otherwise, print No.

Constraints

$1≤a,b,c≤100$
All values in input are integers.

Sample 1 Input

5 3 2

Sample 1 Output

Yes
The given integers are $2,3,5$ when sorted in ascending order, of which $b$ is the median.

Sample 2 Input

2 5 3

Sample 2 Output

No
$b$ is not the median of the given integers.

Sample 3 Input

100 100 100

Sample 3 Output

Yes

Source/Category