int main()
{
    int n = 0;
    double m = 0.0;
    double sum = 0.0;
    double max = 0.0;
    double min = 100.0;
    scanf("%d",&n);
    while(scanf("%lf",&m)!=EOF)
    {
        if(m>max)
        {
            max = m;
        }
        if(m<min)
        {
            min = m;
        }
        sum = sum + m;
    }
    printf("%.2lf %.2lf %.2lf",max,min,sum/n);
    return 0;
}