#include <bits/stdc++.h>
using namespace std;
int main() {
  double p[20] = {500.0, 1000.0, 1500.0, 2000.0, 2500.0}, m[20], w[20], h[5];
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  for (int i = 0; i < 2; i++) cin >> h[i];
  double sum = 0.0;
  for (int i = 0; i < 5; i++) {
    sum += max(0.3 * p[i], (1.0 - (m[i] / 250.0)) * p[i] - (50.0 * w[i]));
  }
  sum += h[0] * 100.0;
  sum -= h[1] * 50.0;
  printf("%.0lf", sum);
  return 0;
}
