#include <bits/stdc++.h>
using namespace std;
int main() {
  double arr[5] = {500, 1000, 1500, 2000, 2500};
  double h1, h2, maxi = 0, sum = 0, m, t;
  vector<double> v1, v2, v3;
  for (int i = 0; i < 5; i++) {
    double x;
    cin >> x;
    v1.push_back(x);
  }
  for (int i = 0; i < 5; i++) {
    double x;
    cin >> x;
    v2.push_back(x);
  }
  cin >> h1 >> h2;
  for (int i = 0; i < 5; i++) {
    t = (1 - (v1[i] / 250));
    m = t * arr[i] - 50 * v2[i];
    maxi = max(.3 * arr[i], m);
    sum += maxi;
  }
  sum += (h1 * 100);
  sum -= (h2 * 50);
  cout << sum << endl;
  return 0;
}
