import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        while (sc.hasNextInt()) {
            list.add(sc.nextInt());
        }
        sc.close();
        int count = 0;
        int sum = 0;
        for (int i : list) {
            if (i < 0) {
                count++;
            } else {
                sum += i;
            }
        }
        System.out.println(count);
        if (count == list.size()) {
            System.out.println(0.0);
        } else {
            System.out.printf("%.1f\n", (double)sum / (list.size() - count));
        }
    }
}