#5Easy
Sum of n numbers
Time: 1 s · Memory: 256 MB
- Input and output
Statement
You are given integers. Find their sum.
Input format
The first line contains () — the number of integers.
The second line contains integers () separated by spaces.
Output format
A single integer — the sum of all .
Examples
Input
5 1 2 3 4 5
Output
15
Input
3 -4 10 -6
Output
0
Note
The sum can reach , which does not fit into a 32-bit int (its limit is about ). Use long long in C++ and int64 in Go. Python integers are unbounded.
