1798: 【CSP数组】歌唱比赛评分▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:6 Solved:5

Description

四(1 班要举行一次歌唱比赛,以选拔更好的苗子参加校的歌唱比赛。评分办法如下:设 lns="http://www.w3.org/1998/Math/MathML">N 个评委,打 lns="http://www.w3.org/1998/Math/MathML">N 个分数( lns="http://www.w3.org/1998/Math/MathML">0每个分数10 ),去掉一个最高分,去掉一个最低分,剩下的评委的平均分即为该选手的最后得分。

但是选手太多了,靠人工计算每个选手的得分太慢太麻烦。你能不能帮帮他们,设计一个程序让计算机来算出选手的最后得分呢?

Input

第一行为一个整数 lns="http://www.w3.org/1998/Math/MathML">N (lns="http://www.w3.org/1998/Math/MathML">5N10);

第二行为 lns="http://www.w3.org/1998/Math/MathML">N 个整数 lns="http://www.w3.org/1998/Math/MathML">Ai (lns="http://www.w3.org/1998/Math/MathML">0Ai10 )。

Output

选手的最后得分(保留两位小数)。

Sample Input Copy

5
5 6 7 8 9

Sample Output Copy

7.00