The array of integers is given. Find the sum of all array elements that are not equal to the maximum.
The first line contains the number . The next line contains integers, each of which does not exceed in absolute value.
Print the sum of all the array elements that are not equal to the maximum.