import java.util.Scanner;

/**
 * HJ105 记负均正II - 较难
 */
public class HJ105 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int pos = 0;//非负数数和
        int posCount = 0;//非负数个数
        int negCount = 0;//负数个属于
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            if (n >= 0) {
                pos += n;
                posCount++;
            }
            if (n < 0) {
                negCount++;
            }
        }
        System.out.println(negCount);
        if (posCount == 0) {
            System.out.println(0.0);
        } else {
            System.out.printf("%.1f", (double) pos / posCount);
        }
        sc.close();
    }

}