#C7045. Final Number Sum
Final Number Sum
Final Number Sum
James and Emily have a unique way of combining numbers. Given an initial list of n integers, they combine these numbers optimally until only one number remains. It turns out that the optimal strategy is simply to add all the numbers together. Your task is to compute this final number.
Mathematically, if the list of numbers is \(a_1, a_2, \ldots, a_n\), then the final result is given by:
\(S = \sum_{i=1}^{n} a_i\)
inputFormat
The input consists of two lines. The first line contains a single integer n, representing the number of elements in the list.
The second line contains n space-separated integers representing the elements of the list.
outputFormat
Output a single integer which is the sum of all n numbers.
## sample4
2 9 3 1
15
</p>