Average value - 1
The project "The average weight of a high school student" was solved by Mammad and Samed. What they will do with this number, they do not tell. They asked to weigh all the pupils of the school and put the results into the table. Help them to calculate the average weight of the students. But they ask that the students with the biggest and the smallest weight should not be considered. Their only omission, they did not calculate the total number of students, but this, of course, does not prevent you from calculating what they are asking for.
Input
In a few lines, the weights of students are given in kilograms, separated by spaces (one or more) or by the end of line character. Read the weights of the students until the end of the input.
Output
Print the average weight of pupils in the school without taking into account the students with the largest and smallest weight. Print the answer rounded to kilograms.