Sum without maximum#7831

Sum without maximum

1 segundo
128 megabytes
Muy fácil

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

Entrada

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

Salida

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

Ejemplos

Ejemplo 1

Loading
Loading