import java.util.Scanner;
/**
* HJ97 记负均正
*/
public class HJ097 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextInt()) {
int n = sc.nextInt();
int negCount = 0;//负数个数
int pos = 0;//正数之和
int posCount = 0;//正数个数
for (int i = 0; i < n; i++) {
int num = sc.nextInt();
if (num < 0) {
negCount++;
}
if (num > 0) {
pos += num;
posCount++;
}
}
if (posCount == 0) {
System.out.printf("%d 0.0\n", negCount);
} else {
System.out.printf("%d %.1f\n", negCount, (double) pos / posCount);
}
}
sc.close();
}
}