In a cooking contest, each contestant's dish will be presented to 5 judges. Each judge will award a score between 0 and 10.

However, the judges may have individual taste preferences that affect their judging. To minimize the influence of the judges' bias, the lowest and highest score awarded by the judges will be dropped. The final score of the contestant will be the sum of the scores awarded by the remaining 3 judges.

James is competing in this contest and just received his scores from the judges. Help him calculate his final score.

Input

The only line of input contains 5 integers, the score awarded by each judge.

Output

Output the final score that James attained.

Sample Test Cases

Input Output
8 7 4 6 9 21
0 2 5 10 10 17
If the lowest/highest score appears more than once, only one of them will be discarded.
Click to copy.

Scoring: Per Subtask
Authored by s16f22
Appeared in 2024 Mini Contest 0