#include <stdio.h>

int main() {
    int arr[50000];
    int i=0;
    while(scanf("%d",&arr[i])!=EOF)
    {
        i++;
    }
    int len=i;
    int sum=0;
    int count=0;
    double num=0;
    for(int j=0;j<len;j++)
    {
        if(arr[j]<0)
        {
            count++;
        }
        if(arr[j]>=0)
        {
            sum+=arr[j];
            num++;
        }
    }
    if(num==0)
        printf("%d\n%.1lf",count,0.0);
    else
        printf("%d\n%.1lf",count,sum/num);   
    return 0;
}