Sum of List
Given a count N followed by N numbers (one per line), print their sum.
Input
- The first line contains an integer
N(1 <= N <= 2·10^4). - The next
Nlines each contain one integer between -10^9 and 10^9.
Output
Print the sum of the N numbers.
Examples
Input:
3
10
20
30
Output: 60
Input:
4
1
2
3
4
Output: 10
Input:
1
42
Output: 42
With N = 1, the sum is just that single number.
Input:
3
-5
-10
15
Output: 0