Score : $200$ points
There are $N$ trees. The $i$-th tree bears $A_i$ nuts.
Chipmunk will harvest nuts from the trees in the following manner:
Find the total number of nuts Chipmunk will take from the trees.
Input is given from Standard Input in the following format:
$N$ $A_1$ $\ldots$ $A_N$
Print the answer.
3 6 17 28
25
From the three trees, Chipmunk will take $0$, $7$, and $18$ nuts, for a total of $25$ nuts.
4 8 9 10 11
1