Eric is participating in a Halloween-themed costume contest!
judges are admiring Eric's costume and the th judge gives Eric a score of .
Unfortunately, the judging panel collectively agrees that Eric's costume is too cute, so in order to level the playing field, they decide to remove his highest score. If the highest score is given by multiple judges, only one instance of the score is removed. Can you help him figure out his total score?
Input Specification
The first line contains an integer representing the number of judges, .
The next line contains space-separated integers, , representing the judge's scores.
Output Specification
Output an integer representing Eric's total score after his highest score is removed.
Sample Input
5
79 58 92 46 85
Sample Output
268
Comments
This comment is hidden due to too much negative feedback. Show it anyway.