import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sr=new Scanner(System.in);
while(sr.hasNext())
{
int count1=0,count2=0;
double sum=0.0;
int n=sr.nextInt();
int[] ar=new int[n];
for (int i=0;i<n ;i++ )
{
ar[i]=sr.nextInt();
}
for (int i=0;i<ar.length ;i++ )
{
if (ar[i]<0)
count1++;
if (ar[i]>0)
{
sum+=ar[i];
count2++;
}
}
System.out.print(count1+" "+String.format("%.1f",sum/count2)+"\n");
}
sr.close();
}
}