The input contains between 1 and 10 lines, *i*-th line contains an integer number *x*<sub class="lower-index">*i*</sub> (0 ≤ *x*<sub class="lower-index">*i*</sub> ≤ 9).
# LUOGU_RID: 127630802
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int tux;
    cin>>tux;
    double foo=0,bar=0,baz=0,quz=1;
    for(int i=1;i<=tux;i++)
    {
        double pur;
        cin>>pur;
        foo+=pur;
        bar=bar+1;
        if(foo*quz>baz*bar)
        {
            baz=foo;
            quz=bar;
        }
    }
    printf("%.4lf",baz/quz);
}