#include <iostream>
using namespace std;
int main()
{
double fy[10] = {28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65};
double sum = 0;
int a;
for (int i = 0; i < 10; i++)
{
cin >> a;
sum += a * fy[i];
}
printf("%.1lf", sum);
return 0;
}