Олимпиадный тренинг

Задача 7147. Athlete score


In some types of sports (for example, in figure skating), the performance of each athlete is independently evaluated by eight judges, then the highest and lowest are removed from the entire set of ratings, and the arithmetic mean is calculated for the remaining ratings, which goes to the athlete. If the highest mark was given by several judges, then only one such mark is removed from the set of marks; the same goes for the lowest scores.
The scores given by eight judges to one of the participants of the competition are known. Write a program to calculate the mark that will be credited to this athlete.

Input
The first line contains 8 numbers separated by a space (each number is from 0 to 10).

Imprint
Display the score that will be credited to the athlete.
 
Example
# Input Output
1 3 9 7 8 9 5 7 10 7.5