#include <bits/stdc++.h>
using namespace std;
long long int fastpow(long long int a, long long int b) {
  long long int result = 1;
  while (b) {
    if (b & 1) {
      result *= a;
    }
    b >>= 1;
    a *= a;
  }
  return result;
}
int main() {
  float score[5] = {500, 1000, 1500, 2000, 2500};
  float arr[5];
  float w[5];
  float h[2];
  for (int i = 0; i < 5; i++) cin >> arr[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  for (int i = 0; i < 2; i++) cin >> h[i];
  float sum = 0;
  for (int i = 0; i < 5; i++) {
    sum = sum + max(0.3 * score[i],
                    double(((1 - arr[i] / 250) * score[i]) - 50 * w[i]));
  }
  sum += 100 * h[0] - 50 * h[1];
  sum = (int)sum;
  cout << sum << endl;
}
