# Sum without maximum

Execution time limit is 1 second

Runtime memory usage limit is 128 megabytes

The array of $n$ integers is given. Find the sum of all array elements that are not equal to the maximum.

## Input

The first line contains the number $n(n≤100)$. The next line contains $n$ integers, each of which does not exceed $100$ in absolute value.

## Output

Print the sum of all the array elements that are not equal to the maximum.

## Examples

Input #1

Answer #1

Submissions 24K

Acceptance rate 51%