Drop links or images here to add them to the editor.

Sum of Array ⭐

Read an integer N. This number indicates how many values the array will have.

Then, read N integers (one per line) and store them in an array.

Finally, calculate and display the total sum of all elements in the array.

Hints:

Input

An integer N, followed by N integers, one per line.

Output

Print a single integer: the sum of all elements.

Example

Input:

3
5
10
15

Output:

30