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