The array of integers is given. Find the sum of all elements in the array that are not equal to the maximum element.
The first line contains one integer n~(n \le 100). The second line contains integers, each with an absolute value not exceeding .
Print the sum of all elements in the array that are not equal to the maximum element.
Ejemplo 1