#include <stdio.h>

int main() {
    int n;
    while (scanf("%d", &n) != EOF) {
        int sum = 0;
        int tempnum = 0;
        int nnum = 0;
        int num = 0;
        for(int i = 0; i < n; i++) {
            scanf("%d", &tempnum);
            if(tempnum != 0) {
                if(tempnum > 0) {
                    sum += tempnum;
                    num++;
                } else {
                    nnum++;
                }
            }
        }
        float average = 0;
        if(num != 0)  average = (float)sum / (float)num;
        printf("%d %.1f", nnum, average);
    }
    return 0;
}