var len=parseInt(readline()) var line=readline() line=line.split(' ') var numf=0 var numz=0 var sum=0 var avg=0 var arr=[] for(let i=0;i<len;i++){ arr.push(parseInt(line[i])) } for(let i=0;i<len;i++){ if(arr[i]<0){ numf++ }else if(arr[i]>0){ numz++ sum+=arr[i] } } if(numz===0){avg='0.0'}else{ avg=sum/numz avg=avg.toFixed(1) } console.log(numf,avg)