#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[5];
  int w[5];
  int hs, hu;
  int max_scores[] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> hs >> hu;
  int total_score = 0;
  int score = 0;
  for (int i = 0; i < 5; i++) {
    score =
        max((double)(0.3 * max_scores[i]),
            (((double)(250 - m[i]) / (double)250)) * max_scores[i] - 50 * w[i]);
    total_score += score;
  }
  total_score += (hs * 100 - hu * 50);
  cout << total_score << endl;
  return 0;
}
