#include <bits/stdc++.h>
using namespace std;
int main() {
  double p[5] = {500, 1000, 1500, 2000, 2500}, n[5], m[5], h[2], re = 0;
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> n[i];
    re += max(0.3 * p[i], (1 - (m[i] / 250)) * p[i] - 50 * n[i]);
  }
  cin >> h[0] >> h[1];
  re += (h[0] * 100) - (h[1] * 50);
  cout << int(re) << endl;
}
