Problem1727--求n个数的第三大的数字

1727: 求n个数的第三大的数字

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

Description

任意输入n个整数,把它们的第三大的数字找出来。

Input

输入只有一行,包括一个整数n(3<=n<=20),后面跟着n个数。

Output

输出只有一行,包括1个整数。

Sample Input Copy

5 1 99 3 6 0

Sample Output Copy

5

HINT


Source/Category

查找