Problem2325--Median

2325: Median

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 1024 MB

Score : 100100 points

Problem Statement

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

Constraints

  • 1 \leq a, b, c \leq 1001a,b,c100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:
aabbcc

Output

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

Sample Input Copy

5 3 2

Sample Output Copy

Yes

HINT

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

Source/Category