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

Array Sum Function

Create a function named sumar.

The function must receive an integer array and its size. It must return the sum of all elements in the array.

Required function

int sumar(int a[], int n)

Input

The first number indicates the number of elements in the array.

Then the array elements are entered.

Output

The sum of the array elements.

Example

Input:

4 5 10 15 20

Output:

50