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