#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<double> M(5), W(5);
  double S, US;
  for (int i = 0; i < 5; i++) {
    cin >> M[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> W[i];
  }
  cin >> S >> US;
  double score = 0;
  for (int i = 0; i < 5; i++) {
    double X = 500 * (i + 1);
    double val = max(0.3 * X, (250 - M[i]) * (X / 250.0) - 50 * W[i]);
    score += val;
  }
  score += 100 * S - 50 * US;
  cout << score << endl;
  return 0;
}
