Problem4514--三个数的中位数

4514: 三个数的中位数

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

Description

给定三个整数 lns="http://www.w3.org/1998/Math/MathML">alns="http://www.w3.org/1998/Math/MathML">b 与 lns="http://www.w3.org/1998/Math/MathML">c,请输出它们的中位数。

所谓中位数就是,将这些数字按照大小顺序排列后,处于最中间的数字。

Input

  • 第一行:三个整数 lns="http://www.w3.org/1998/Math/MathML">alns="http://www.w3.org/1998/Math/MathML">b 与 lns="http://www.w3.org/1998/Math/MathML">c
−10000≤a,b,c≤10000



Output

  • 第一行:单个整数表示三者的中位数

Sample Input Copy

-1 2 0

Sample Output Copy

0

Source/Category