#include <bits/stdc++.h>
using namespace std;
int maximum(int a, int b) { return a > b ? a : b; }
int m[5], w[5], maxpoint[5] = {500, 1000, 1500, 2000, 2500};
int main() {
  int x, sumpoint = 0, shack, unshack, i;
  for (i = 0; i < 5; i++) cin >> m[i];
  for (i = 0; i < 5; i++) cin >> w[i];
  cin >> shack >> unshack;
  for (i = 0; i < 5; i++) {
    sumpoint += maximum(0.3 * maxpoint[i],
                        ((((250 - m[i]) * maxpoint[i]) / 250) - (50 * w[i])));
  }
  sumpoint += shack * 100;
  sumpoint -= unshack * 50;
  cout << sumpoint << endl;
  return 0;
}
