import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) throws InterruptedException { Scanner sc=new Scanner(System.in); int fs=0; int zs=0; float avg=0; Integer n=sc.nextInt(); int[] nums=new int[n]; for (int i = 0; i < n; i++) { int x=sc.nextInt(); if(x>0){ zs++; avg+=x; } if(x<0){ fs++; } } if(zs==0){ System.out.format("%d %.1f",fs,0.0); }else{ System.out.format("%d %.1f",fs,avg/zs); } } }