#include <bits/stdc++.h>
using namespace std;
int main() {
  int i;
  long double m[5];
  long double w[5];
  long double h1, h2;
  for (i = 0; i < 5; i++) cin >> m[i];
  for (i = 0; i < 5; i++) cin >> w[i];
  cin >> h1 >> h2;
  long double x;
  long double p = 0;
  for (i = 0; i < 5; i++) {
    x = 500 * (i + 1);
    p += max(0.3 * x, ((250.0 - m[i]) / 250.0) * x - (50 * w[i]));
  }
  p += (100 * h1);
  p -= (50 * h2);
  cout << fixed << setprecision(0) << p << endl;
}
