atcoder#ABC253A. [ABC253A] Median?

[ABC253A] Median?

Score : 100100 points

Problem Statement

Given integers aa, bb, and cc, determine if bb is the median of these integers.

Constraints

  • 1a,b,c1001 \leq a, b, c \leq 100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

Output

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

5 3 2
Yes

The given integers are 2,3,52, 3, 5 when sorted in ascending order, of which bb is the median.

2 5 3
No

bb is not the median of the given integers.

100 100 100
Yes