#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d,e,f,g,h,i,j;
    cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j;
    cout<<fixed<<setprecision(1)<<28.9*a+32.7*b+45.6*c+78*d+35*e+86.2*f+27.8*g +43*h+56*i+65*j;
    return 0;
}