#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
const double eps = 1e-6;
long long m[10], w[10], h[3], s;
int main() {
  for (int i = 1; i <= 5; ++i) {
    cin >> m[i];
  }
  for (int i = 1; i <= 5; ++i) {
    cin >> w[i];
  }
  long long cn = 500;
  cin >> h[1] >> h[2];
  for (int i = 1; i <= 5; ++i) {
    long long x = cn * i;
    s += max(x * 3 / 10, ((250 - m[i]) * x / 250 - 50 * w[i]));
  }
  s += h[1] * 100 - 50 * h[2];
  cout << s;
}
