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).
#include<cstdio>
 
int main(){
	int tux;
	scanf("%d",&tux);
	int foo=0,bar=0,baz=0,quz=1;
	for(int i=0;i<tux;i++){
		int pur;
		scanf("%d",&pur);
		foo+=pur;
		bar++;
		if(foo*quz>=bar*baz){
			baz=foo;
			quz=bar;
		}
	}
	printf("%.6lf\n",(double)baz/quz);
 
	return 0;
}