Array#212

Array

1 second
32 megabytes
Very easy (β‰ˆ850)

An array of integers π‘Ž_0, π‘Ž_1, π‘Ž_2 … π‘Ž_{π‘›βˆ’1} is given. You need to sum all the numbers in this array. While calculating the sum, disregard the largest numbers. In other words, you should sum the numbers in the array excluding the maximum numbers.

Input

The input starts with the integer , followed by the integers π‘Ž_0, π‘Ž_1, π‘Ž_2 … π‘Ž_{π‘›βˆ’1} on the next line (1 ≀ 𝑛 ≀ 100 and βˆ’100 ≀ π‘Ž_𝑖 ≀ 100).

Output

Output the sum of the numbers in the array excluding the maximum numbers.

Examples

Example 1

Loading
Loading