#include<stdio.h>

int main(int argc, char const *argv[])
{
    int n=0, in_num=0, f_count=0, i_count=0;
    float i_sum=0;
    while (scanf("%d", &n) != EOF)
    {
        f_count=0, i_count=0, i_sum=0;
        for (int i = 0; i < n; i++)
        {
            in_num=0;
            scanf("%d", &in_num);
            if (in_num > 0)
            {
                i_count++;
                i_sum += in_num;
            }
            else if (in_num < 0)
            {
                f_count++;
            }
        }
        printf("%d %.1f\n", f_count, i_sum/i_count);
    }
    return 0;
}