#include <bits/stdc++.h>
using namespace std;
const int maxn = 1E5;
const int inf = 1E9;
int main() {
  vector<int> m, w;
  for (int i = 1; i <= 5; i++) {
    int t;
    cin >> t;
    m.push_back(t);
  }
  for (int i = 1; i <= 5; i++) {
    int t;
    cin >> t;
    w.push_back(t);
  }
  int hs, hw;
  cin >> hs >> hw;
  int xx[5];
  xx[0] = 500;
  xx[1] = 1000;
  xx[2] = 1500;
  xx[3] = 2000;
  xx[4] = 2500;
  double ans = 0;
  for (int i = 0; i < 5; i++) {
    double r = (double)(0.3 * xx[i]),
           rt = (double)(1 - (double)((double)m[i] / 250)) * xx[i] - 50 * w[i];
    if (r > rt)
      ans += r;
    else
      ans += rt;
  }
  ans += hs * 100;
  ans -= hw * 50;
  cout << (int)ans;
  return 0;
}
