#CCBCHBA0000042. Positives and Average (Positives and Average)

Positives and Average (Positives and Average)

Positives and Average

Source: beecrowd

Version: Phuoc Hung OJ Extended

Problem Statement

Read six real numbers; only positives count toward the mean. The PHOJ version requires at least one positive value, to avoid division by zero; preserve original output format.

Input

Six values with one decimal digit and |x|<=1000; at least one is positive (PHOJ Extended condition).

Output

Line 1: <count> valores positivos; line 2: the positive-value mean to one decimal place.

Subtasks

  • Subtask 1 (20%): |x|<=10 và có số dương.
  • Subtask 2 (30%): |x|<=100 và có số dương.
  • Subtask 3 (50%): |x|<=1000 và có số dương.

Examples

Example 1

Input

7.0
-5.0
6.0
-3.4
4.6
12.0

Output

4 valores positivos
7.4

Explanation

Sum 29.6 divided by 4 gives 7.4.

Example 2

Input

0.0
-1.0
1.0
-2.0
-3.0
-4.0

Output

1 valores positivos
1.0

Explanation

Only 1.0 is positive.