#C9027. Average Study Time

    ID: 53075 Type: Default 1000ms 256MiB

Average Study Time

Average Study Time

You are given 7 integers which represent the study times for each day of a week. Your task is to calculate the average study time after removing the maximum and minimum values. In other words, remove the highest value and the lowest value from the list, then compute the arithmetic mean of the remaining 5 values.

The formula for the trimmed average can be written in LaTeX as:

[ \text{Average} = \frac{\sum_{i=2}^{n-1} a_i}{n-2} ]

where \(a_i\) are the sorted study times and \(n=7\) in this problem.

Make sure to read from standard input and write your result to standard output.

inputFormat

The input consists of a single line containing 7 space-separated integers representing the study times for each day.

outputFormat

Output a single floating point number which is the trimmed average study time. The answer should be printed with a decimal point (e.g., 4.0).

## sample
2 6 3 5 8 4 1
4.0