文件目录

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int n, s = 0, a;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a;
        s += a;
    }
    double ave = 1.0 * s / n;
    cout << s << " ";
    cout << fixed << setprecision(5) << ave;
    return 0;
}