文件目录

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int n = 0;
    int num;
    int mina = 99999, maxa = 0;
    double s = 0;
    while (cin >> num)
    {
        n++;
        if (num > maxa)
            maxa = num;
        if (num < mina)
            mina = num;
        s += num;
    }
    cout << mina << " " << maxa << " ";
    cout << fixed << setprecision(3) << s / n;
    return 0;
}