7816: ABC253 —— A - Median?
[Creator : ]
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$
$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.
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