Negative elements
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The sequence of real numbers is given. Find the sum and the number of negative elements in it.
Input
The first line contains the number of sequence elements. In the next line real numbers — the elements of sequence are given. Their values do not exceed by absolute value.
Output
Print in one line the number of negative elements and their sum with two digits after the decimal point.
Examples
Input #1
Answer #1
Submissions 35K
Acceptance rate 50%