You are given an array of integers: a_0, a_1, a_2, \dots, a_{n-1}. Your task is to calculate the sum of all elements in the array excluding the elements that are equal to the maximum value. In other words, sum all numbers in the array except the maximum ones.
The first line contains the integer , and the second line contains integers a_0, a_1, a_2, \dots, a_{n-1} (1 \leq n \leq 100,\ -100 \leq a_i \leq 100).
Output the sum of all elements in the array excluding the maximum ones.
Example 1
Each correct test case will earn points. The total score is 100.