The project "Average Weight of a School Student" was undertaken by Mamed and Samed.
Why they need this number remains a mystery. They asked all the students in the school to weigh themselves and recorded the results in a table. Your task is to help them calculate the average weight of the students. However, there is a condition: when calculating the average, the students with the highest and lowest weights should not be included.
It is worth noting that Mamed and Samed forgot to count the total number of students, but this will not prevent you from completing the task.
The weights of the students are given across multiple lines, separated by spaces (one or more) or by the end-of-line character. The input continues until the end of the file.
Print the average weight of the students, excluding the ones with the highest and lowest weights. The result should be rounded to the nearest whole number.
Example 1