#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int i;
  double x, hs, hu, total = 0.0, val, tmp;
  vector<double> m, w, s;
  s.push_back(500.0);
  s.push_back(1000.0);
  s.push_back(1500.0);
  s.push_back(2000.0);
  s.push_back(2500.0);
  for (i = 0; i < 5; i++) {
    cin >> x;
    m.push_back((double)x);
  }
  for (i = 0; i < 5; i++) {
    cin >> x;
    w.push_back((double)x);
  }
  cin >> hs >> hu;
  for (i = 0; i < 5; i++) {
    val = (1.0 - m[i] / 250.0) * s[i] - 50.0 * w[i];
    tmp = 0.3 * s[i];
    if (val < tmp) val = tmp;
    total = total + val;
  }
  total = total + (((double)hs) * 100.0 - ((double)hu) * 50.0);
  cout << (int)total << '\n';
  return 0;
}
