P24339 [AtCoder] Median?
入门
题目描述

Problem Statement

Given integers a, b, and 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 \leq a, b, c \leq 100$
  • All values in input are integers.

Sample Input 1

5 3 2

Sample Output 1

Yes

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

Sample Input 2

2 5 3

Sample Output 2

No

b is not the median of the given integers.

Sample Input 3

100 100 100

Sample Output 3

Yes

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
5 3 2
样例输出
Yes