atcoder#ABC253A. [ABC253A] Median?
[ABC253A] Median?
Score : points
Problem Statement
Given integers , , and , determine if is the median of these integers.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If is the median of the given integers, then print Yes
; otherwise, print No
.
5 3 2
Yes
The given integers are when sorted in ascending order, of which is the median.
2 5 3
No
is not the median of the given integers.
100 100 100
Yes