#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[5] = {500, 1000, 1500, 2000, 2500};
  int m[5], w[5];
  int s, u;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> s >> u;
  double d = 0.0;
  for (int i = 0; i < 5; i++) {
    double mi = m[i], wi = w[i], xi = x[i];
    d += max(0.3 * xi, (1 - mi / 250.0) * xi - 50 * wi);
  }
  d += (100 * s);
  d -= (50 * u);
  d += 0.5;
  cout << floor(d) << endl;
}
