#include <cstdio> int main() { int n, num, sum, cntN, cntP; while(EOF != scanf("%d", &n)) { sum = 0; cntN = 0; cntP = 0; for(int i=0; i<n; i++) { scanf("%d", &num); if(num < 0) { cntN++; } else if(num > 0) { sum += num; cntP += 1; } } printf("%d %.1f\n", cntN, (double)(sum)/cntP); } return 0; }