#include <bits/stdc++.h>
using namespace std;
const long long OO = 1e8;
const double EPS = (1e-7);
int dcmp(double x, double y) { return fabs(x - y) <= EPS ? 0 : x < y ? -1 : 1; }
using namespace std;
int main() {
  int n = 5, sh, uh;
  vector<int> vt(n), vw(n);
  int vx[] = {500, 1000, 1500, 2000, 2500};
  double sum = 0;
  for (int i = 0; i < (int)(n); ++i) cin >> vt[i];
  for (int i = 0; i < (int)(n); ++i) cin >> vw[i];
  for (int i = 0; i < (int)(n); ++i) {
    sum += max(
        0.3 * vx[i],
        double((1 - double((double)vt[i] / (double)250)) * vx[i]) - 50 * vw[i]);
  }
  cin >> sh >> uh;
  sum += (100 * sh - 50 * uh);
  cout << sum;
  return 0;
}
