#include <bits/stdc++.h>
using namespace std;
int main() {
  double sum = 0, grade[5], point[5], k[5], worry[5], hack, unhack;
  double max[5] = {500, 1000, 1500, 2000, 2500};
  double time[5];
  for (int i = 0; i < 5; i++) {
    cin >> time[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> worry[i];
  }
  cin >> hack >> unhack;
  for (int i = 0; i < 5; i++) {
    k[i] = time[i] / 250;
    point[i] = 0.3 * max[i];
    grade[i] = ((1 - k[i]) * max[i] - 50 * worry[i]);
    if (grade[i] <= point[i]) {
      grade[i] = point[i];
    }
  }
  for (int i = 0; i < 5; i++) {
    sum += grade[i];
  }
  sum = sum + hack * 100 - unhack * 50;
  cout << sum << endl;
  return 0;
}
