Tanvir is helping the department count votes for the best-project award. His first job: given every judge's marks, add them all up. Read N integers and print their sum.
Input
First line N, second line N integers.
Output
Sum of the array.
Constraints
1 ≤ N ≤ 10^5, |a_i| ≤ 10^4
Sample Input
4 1 2 3 4
Sample Output
10
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.