#include <iostream>
using namespace std;
int main(){
int num = 0;
int temp = 0;
while(cin>>num)
{
int num_negetive = 0;
int num_positive = 0;
float ave_positive = 0.0;
for(int i = 0;i<num;i++){
cin>>temp;
if(temp < 0){
num_negetive++;
}
else if(temp > 0){
num_positive++;
ave_positive+=temp;
}
}
printf("%d %.1f\n",num_negetive,ave_positive/num_positive);
}
}