#include <bits/stdc++.h>
using namespace std;
const int MIN = 1e3 + 2;
const int MXN = 1e5 + 3;
const int INF = 1e9 + 7;
const long long LINF = 1e18 + 15;
const double EPS = 1e-9;
double m[6], w[6], hs, hu, ans;
int main() {
  for (int i = 1; i <= 5; i++) {
    cin >> m[i];
  }
  for (int i = 1; i <= 5; i++) {
    cin >> w[i];
    ans += max(0.3 * double(i) * 500.0,
               (1.0 - m[i] / 250.0) * double(i) * 500.0 - 50.0 * w[i]);
  }
  cin >> hs >> hu;
  ans += (hs * 100.0);
  ans -= (hu * 50.0);
  cout << ans;
  return 0;
}
