#P10815. Sum of Numbers

    ID: 12857 Type: Default 1000ms 256MiB

Sum of Numbers

Sum of Numbers

Given (n) numbers, compute their sum and output the result.

The task is straightforward: you are provided with a number of integers and you need to calculate their total.

inputFormat

The input consists of two lines:
1. The first line contains an integer (n), the number of integers.
2. The second line contains (n) space-separated integers.

outputFormat

Output a single integer which is the sum of the given (n) numbers.

sample

3
1 2 3
6