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

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

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

        int size = sc.nextInt();
        for (int i = 0; i < size; i++) {
            int nextInt = sc.nextInt();
            if (nextInt > 0) {
                arrayList.add(nextInt);
            } else if (nextInt < 0){
                count++;
            }
        }

        System.out.print(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());
        }
    }
}