문제
In your bovine history class, you have been given a rather long homework assignment with
After copious explanation, your teacher finally believes your story, and agrees to grade the remaining non-eaten part of the assignment the same way as before -- by removing the lowest-scoring question (or one such question, in the event of a tie) and averaging the rest.
Please output all values of
Problem credits: Brian Dean
입력
The first line of input contains
출력
Please output, one value per line, all values of
예제
5
3 1 9 2 7
2
If Bessie eats the first two questions, then the remaining scores are 9, 2, and 7. Removing the minimum and averaging, we get a final grade of 8, which is the highest possible.