//使用if判断嵌套循环即可,需要注意输出类型为小数。

#include<iostream>
using namespeace std;

#include<iomanip> //控制输出小数点需要的头文件

int main(){
    int count;
    while(cin >> count){
        int num; //获取数据
        int pos_count = 0; //记录正整数个数
        int pos_sun = 0;  //记录正整数之和
        double pos_anv; //记录正整数平均值,使用浮点数
        int neg_count = 0; //记录负数个数
        for(int i = 0;i < count;i++){
            cin >> num;
            if(num < 0){
                neg_count ++;
            }
            if(num > 0){
                pos_count ++;
                pos_sum += num;
            }
            else{
                continue;
            }
        }
        double a = pos_sum,b = pos_count; //转化为浮点数
        pos_anv = a / b;
//规定输出几位使用cout << setprecision(n) << fixed << ..;
        cout << neg_count << ' ' << setprecision(1) << fixed << pos_anv << endl;
    }
    return 0;
}