//        

#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
    double min = 100, max = 0, num = 0, x;
    int n;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        cin >> x;
        if (max < x)
            max = x;
        if (min > x)
            min = x;
        num += x;
    }
    cout << fixed << setprecision(2) << max << " " << fixed << setprecision(2)  << min << " " << fixed << setprecision(2) << num / n << endl;
    system("pause");
    return 0;
}