Time

13:15:56
23 May 2012
Version for print

Number 3

   The one-dimensional array A of real numbers numbered from 1 to h is set. Define the sum and quantity of the positive elements which indexes share on 3 without the rest.


Specifications

   Input

   In the first line set the natural number h - quantity of elements in array (h ≤ 100). Next line through a blank h real numbers - elements of array, value of each of which on the module does not exceed 100.

   Output

   In a unique line deduce at first quantity of required elements of array and through a blank their sum calculated with accuracy 2 signs after a decimal point.


Problem information

Time Limit: 0.5 seconds
Memory Limit: 64 MB
Balls for the passed test: 4
Complexity: 7% 747/803
Source: SFE-2010 Variant 19
Classes: Beginners

Example

Example input

6
6 7.5 2.1 2.0 0 -3

Example output

1 2.10


← Which quarter? Problems Use function →