#include<stdio.h>
int main(){
double sum=0;
int neg=0,zero=0,pos=0,d;
while(~scanf("%d",&d)){
neg+=d<0,zero+=d==0,pos+=d>0;
sum+=d>=0?d:0;
}
printf("%d\n%.1f\n",neg+zero,zero+pos?sum/(pos+zero):0);
}
#include<stdio.h>
int main(){
double sum=0;
int neg=0,zero=0,pos=0,d;
while(~scanf("%d",&d)){
neg+=d<0,zero+=d==0,pos+=d>0;
sum+=d>=0?d:0;
}
printf("%d\n%.1f\n",neg+zero,zero+pos?sum/(pos+zero):0);
}