t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+357*(1-sqrt(1-r*r)/(1-r)));}