#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,d=0,g=0;
    float sum=0;
    int m[100];
    cin>>n;
    for(int i=0;i<n;i++)
    {
        cin>>m[i];
        sum+=m[i];  
    } 
    printf("%.1f",sum/n);
    for(int i=0;i<n;i++)
    {
        if(m[i]<sum/n)
        {
            d+=1;
        }else{
            g+=1;
        }
    }
    cout<<" "<<g<<" "<<d;
    return 0;
}
/**************************************************************
	Problem: 1231
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:42 ms
	Memory:2076 kb
****************************************************************/