#include <bits/stdc++.h>
using namespace std;
void checkDefine();
long long int m[5];
long long int w[5];
long long int hs, hu;
long long int mxS[] = {500, 1000, 1500, 2000, 2500};
int main() {
  for (int i = (0), _b = (4); i <= _b; i++) cin >> m[i];
  for (int i = (0), _b = (4); i <= _b; i++) cin >> w[i];
  cin >> hs >> hu;
  long long int res = 0;
  for (int i = (0), _b = (4); i <= _b; i++) {
    long long int x = mxS[i];
    res += max(0.3 * x, (1 - m[i] / 250.0) * x - 50 * w[i]);
  }
  res += hs * 100 - hu * 50;
  cout << res;
  return 0;
}
void checkDefine() {
  long long int n, a[200005];
  map<long long int, long long int> m;
  cin >> n;
  for (int i = (0), _b = (n - 1); i <= _b; i++) {
    cin >> a[i];
    m[a[i]]++;
  }
  string s;
  cin >> s;
  {
    cout << "s"
         << " = ";
    cout << (s) << endl;
  };
  {
    cout << "a"
         << " = ";
    for (int _ = 0, _a = (n); _ < _a; _++) cout << a[_] << ' ';
    cout << endl;
  };
  {
    cout << "\"------------\""
         << " = ";
    cout << ("------------") << endl;
  };
  for (__typeof(m.begin()) it = m.begin(); it != m.end(); ++it) {
    cout << it->first << " " << it->second << endl;
  }
}
