LearnPy Hub
← Arena
EasyRating 800

Sum of Positives

Print the sum of the positive numbers only.

Input

n, then n integers.

Output

The sum.

Sample 1

Input
5
1 -2 3 -4 5
Output
9

Sample 2

Input
2
-1 -1
Output
0
solution.py
Output appears here
Sum of Positives · Python Arena problem · LearnPy Hub