2224: 【入门】排名第二高的成绩

Memory Limit:16 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:2

Description

帮老师统计一个班级N10<N<100)个同学的考试成绩(成绩不可能全一样)中排名第二高的成绩是多少

Input

第1行有一个整数n10<n<100
第2行有n个整数,用空格隔开。

Output

输出排名第2高的成绩。

Sample Input Copy

15
98 98 56 88 98 99 66 87 67 89 54 77 66 89 60

Sample Output Copy

98