LogiQuest

48. Sum of Array

EasyArray

Print the sum of all elements of the array.

Input format

Line 1: n Line 2: n integers

Output format

The sum.

Example 1

Input

5
1 2 3 4 5

Output

15

Example 2

Input

3
-1 -2 10

Output

7

Constraints

1 ≤ n ≤ 10⁵ |values| ≤ 10⁹

Read input from standard input and print the answer to standard output. Your code is judged against 6 test cases, most of them hidden.

Loading the MyLoginn IDE…