//HJ97 记负均正
#include <stdio.h>

int main(void) {
	int n;
	while (~scanf("%d", &n)) {
		int num, i, count1 = 0, count2 = 0, count = 0;
		float sum = 0.0;
		for (i = 0; i < n; i++) {
			scanf("%d", &num);
			if (num > 0) {
				sum += num;
				count1++;
			}
			else if (num < 0) {
				count2++;
			}
		}
		printf("%d %.1f\n", count2, sum / count1);
	}
	return 0;
}