eolymp
bolt
Try our new interface for solving problems
Problems

Sum of negative

Sum of negative

Time limit 1 second
Memory limit 128 MiB

Find the sum of negative integers in the given array.

Input data

The first line contains the number n. The second line contains n integers, each no more than 100 by absolute value.

Output data

Print the sum of negative integers in the array. If there is no negative integers in array, print 0.

Examples

Input example #1
5
-5 6 8 -3 0
Output example #1
-8
Author Michael Medvedev