eolymp
bolt
Try our new interface for solving problems
Problems

Number by 3

Number by 3

Time limit 1 second
Memory limit 128 MiB

The sequence of real numbers a[1], a[2],..., a[n] is given. Find the sum and the number of positive elements which indexes are divisible by 3.

Input data

The number of elements n (n100) in a sequence is given in the first line. Next line contains n real numbers, each value does not exceed 100 by absolute value.

Output data

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

Examples

Input example #1
6
6 7.5 2.1 2.0 0 -3


Output example #1
1 2.10
Source SFE-2010 Variant 19