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