double u=1e9,d=1e-9,m;long k,s,a[200010],i;main(t){for(;~scanf("%ld",a+s);k=a[s++]);for(a[s-1]=0;t++<99;s>k?d=m:(u=m))for(s=i=1;a[i];s+=a[i++]/m)m=(u+d)/2;i=!printf("%.9f",u);}