#include "stdio.h"
#include "string.h"
int main(void)
{
int num;
int count1 = 0,count2 = 0;
double numCount = 0;
double a;
while(scanf("%d", &num) != EOF)
{
if(num < 0)
count1++;
else
{
count2++;
numCount+=num;
a = numCount / count2;
}
}
printf("%d\r\n",count1);
printf("%0.1f\r\n",a);
return 0;
} 
京公网安备 11010502036488号