- Time limit: 0.50 s
- Memory limit: 128 MB
Calculate the sum of numbers.
Input
The first line of input consists of a single integer . The second line contains space separated integers .
Output
Output the sum of integers .
Constraints
Example
Input:
5 2 1 -3 5 8
Output:
13
Input:
6 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
Output:
6000000000
Remark
The answer might not fit in a 32-bit integer. You might want to use a bigger type (long long
in C++ and long
in Java).
The input is very big, so you have to read it efficiently. See the instructions.