import java.util.ArrayList;
import java.util.Scanner;

/**
 * 【记负均正II】
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        ArrayList<Integer> arrayList = new ArrayList<>();
        int count = 0;

        while (sc.hasNextInt()) {
            int nextInt = sc.nextInt();
            if (nextInt >= 0) {
                arrayList.add(nextInt);
            } else {
                count++;
            }
        }

        System.out.println(count);

        if (arrayList.size() == 0) {
            System.out.println(0.0);
        } else {
            count = 0;
            for (Integer integer : arrayList) {
                count = count + integer;
            }
            System.out.printf("%.1f%n", (float) count / arrayList.size());
        }
    }
}