#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ans = 0;
  double val[10] = {0, 500, 1000, 1500, 2000, 2500};
  double m[10], w[10];
  int win = 0, lose = 0;
  for (int i = 1; i <= 5; i++) {
    cin >> m[i];
  }
  for (int i = 1; i <= 5; i++) {
    cin >> w[i];
  }
  cin >> win >> lose;
  double c = 0;
  for (int i = 1; i <= 5; i++) {
    c += max(val[i] * 0.3, (1.0 - m[i] / 250.0) * val[i] - 50 * w[i]);
  }
  c += 100 * win - 50 * lose;
  cout << (int)c << endl;
  return 0;
}
