#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e6;
int score[] = {500, 1000, 1500, 2000, 2500};
int main() {
  int m[10], w[10];
  int hs, hu;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> hs >> hu;
  double tot = 0;
  for (int i = 0; i < 5; i++) {
    double res = 0.3 * score[i];
    double temp = (1 - m[i] * 1.0 / 250) * score[i] - 50 * w[i];
    res = max(res, temp);
    tot += res;
  }
  tot += hs * 100;
  tot -= hu * 50;
  cout << (int)tot << endl;
  return 0;
}
