package oj.test;
import java.util.*;
public class Demo5 {
/**
* @记负均正
* 从输入任意个整型数,统计其中的负数个数并求所有非负数的平均值
*
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<Integer> al = new ArrayList<Integer>();
while(sc.hasNext()){
al.add(sc.nextInt());
}
//sop(al);
ArrayList<Integer> al1 = new ArrayList<Integer>();
int count=0;
Iterator<Integer> it = al.iterator();
while(it.hasNext()){
int temp = it.next();
if(temp>=0)
al1.add(temp);
else
count++;
}
sop(count);
//sop(al1);
int n = al1.size();
int sum =0;
float aver = 0.0f;
Iterator<Integer> it1 = al1.iterator();
while(it1.hasNext()){
int temp = it1.next();
sum = sum+temp;
}
//sop(sum);
if(n!=0)
aver = sum/n;
else
aver = 0.0f;
sop(aver);
}
private static void sop(Object obj) {
System.out.println(obj);
}
}