#include <iostream> using namespace std; int main(){ string str; int num,count=0,n=0,sum=0; double mean; while (getline(cin,str)){ if (str=="") break; num = stoi(str); if (num<0){ count++; } else{ sum += num; n++; } } if (n==0){ mean = 0.0; } else{ mean = double(sum)/n; } printf("%d\n%.1f\n", count,mean); return 0; }