int main() { int n = 0; while (~scanf("%d", &n)) { int tmp = 0; int sum = 0; int c = 0; int i = n; float n1 = (float)n; while (i) { scanf("%d",&tmp); if (tmp < 0) { c++; n1--; } else if (tmp == 0) n1--; else { sum += tmp; } i--; } printf("%d %.1f\n", c, sum / n1); } return 0; }