#P10086. Board Number Sum Reporting

    ID: 12069 Type: Default 1000ms 256MiB

Board Number Sum Reporting

Board Number Sum Reporting

After each command execution, contestants are required to report the sum of all numbers present on the board to the judges.

The judges will verify the sums using the formula \(\sum_{i=1}^{n} a_i\), where \(a_i\) is the i-th number on the board.

inputFormat

The input begins with a single integer \(n\) representing the number of numbers on the board.

The next line contains \(n\) space-separated integers.

outputFormat

Output a single integer which is the sum of all the provided numbers.

sample

5
1 2 3 4 5
15