2654. Median

单点时限: 2.0 sec

内存限制: 256 MB

This problem is easy. You are giving numbers, and you are going to find the Median of them. Median is the number that separates the higher half the numbers given from the lower half.

输入格式

There are some cases. Process to the end of file

Each case give as separates by a single space, and you are going to generate the numbers as follow:

would be less than . Both would be a positive number less than .

输出格式

Output the number which is the median of the sequence in one line. If is even,you should output the second of the two medians.

样例

Input
5 73 5 97 43
Output
25

33 人解决,50 人已尝试。

62 份提交通过,共有 255 份提交。

5.0 EMB 奖励。

创建: 10 年,5 月前.

修改: 2 年,3 月前.

最后提交: 1 月,3 周前.

来源: N/A

题目标签