Sum without maximum#114

Sum without maximum

1 second
128 megabytes
Very easy (≈850)

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

Input

The first line contains one integer n~(n \le 100). The second line contains integers, each with an absolute value not exceeding .

Output

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

Examples

Example 1

Loading
Loading