#include <ios>
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    int n;
    int count1=0;
    float sum=0;
    int count2=0;
    while(cin>>n){
        if(n<0){
            count1++;
        }
        if(n>=0){
            sum+=n;
            count2++;
        }
    }
    cout<<count1<<endl;
    if(count2!=0)
    cout<<fixed<<setprecision(1)<<sum/count2;
    else cout<<"0.0";

}
// 64 位输出请用 printf("%lld")