import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ int n = in.nextInt(); int totaln = 0; int totalp = 0; int sum = 0; for(int i = 0;i< n;i++){ int m = in.nextInt(); if(m < 0)totaln ++; if(m > 0) { sum += m; totalp ++; }

    }
    double avg = sum*1.0 / totalp;
    System.out.print(totaln+ " ");
    System.out.println(String.format("%.1f",avg));
}
    }
    

}