#include <iostream>
using namespace std;
int main()
{
int num_temp = 0;
int num_1 = 0;
int num_2 = 0;
int sum_2 = 0.0;
while(cin>>num_temp)
{
if(num_temp < 0)
{
num_1++;
}
else
{
num_2++;
sum_2+=num_temp;
}
}
cout<<num_1<<endl;
if(num_2 == 0)
{
cout<<"0.0"<<endl;
}
else
{
//此处必须存在强制类型转换,否则没有小数点后面的值
double result = (double)sum_2/num_2;
printf("%.1f",result);
}
}