#include<iostream>
using namespace std;
int main(){
int n;
while(cin>>n){
int count1=0;
int count2=0;
int sum=0;
while(n--){
int temp;
cin>>temp;
if(temp<0){
count1++;
}
else if(temp>0){
sum+=temp;
count2++;
}
else{
}
}
printf("%d\ %0.1f\n",count1,count2!=0 ? (double)sum/count2 : 0.0);
}
return 0;
}


京公网安备 11010502036488号