Competitions

# Week 3: November 23 – 29. For Loop. Part 1

# Negative elements

The sequence of **n** real numbers is given. Find the sum and the number of negative elements in it.

#### Input

The first line contains the number **n** (**n** ≤ **100**) of sequence elements. In the next line **n** real numbers - the elements of sequence are given. Their values do not exceed **100** by absolute value.

#### Output

Print in one line the number of negative elements and their sum with two digits after the decimal point.

Input example #1

5 6 -7.5 2.1 -2.0 0

Output example #1

2 -9.50