#include<stdio.h>
#include<string.h>
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
int count=0;
int count1=0;
float num=0;
float pnum=0;
int ret[2001];
for(int i=0;i<n;i++)
{
scanf("%d",&ret[i]);
if(ret[i]<0)
{
count++;
}
if(ret[i]>0)
{
num=num+ret[i];
count1++;
}
}
if(num==0)
{
pnum=0;
}
else
{
pnum=num/count1;
}
printf("%d %.1f\n",count,pnum);
}
return 0;
}
#include<string.h>
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
int count=0;
int count1=0;
float num=0;
float pnum=0;
int ret[2001];
for(int i=0;i<n;i++)
{
scanf("%d",&ret[i]);
if(ret[i]<0)
{
count++;
}
if(ret[i]>0)
{
num=num+ret[i];
count1++;
}
}
if(num==0)
{
pnum=0;
}
else
{
pnum=num/count1;
}
printf("%d %.1f\n",count,pnum);
}
return 0;
}