Given $n$ followed by $n$ integers (one per line), print their sum.
Input
First line $n$ ($1 \le n \le 100$); then $n$ integers, each in $[1, 1000]$, one per line.
Output
Print the sum of the $n$ integers.
Example 1
Input
5 1 2 3 4 5
Output
15
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.