import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int n = sc.nextInt();
            // 正整数之和
            int sum = 0;
            // 统计负数个数
            int negativeCount = 0;
            // 统计正整数的个数
            int positiveCount = 0;
            for (int i = 0; i < n; i++) {
                int digit = sc.nextInt();
                if (digit < 0) {
                    negativeCount++;
                } else if (digit > 0) {
                    sum += digit;
                    positiveCount++;
                }
            }
            String format = "0.0";
            if (positiveCount > 0) {
                format = String.format("%.1f", sum * 1.0 / positiveCount);
            }
            System.out.print(negativeCount + " " + format);
        }
        sc.close();
    }
}