#include <bits/stdc++.h>
using namespace std;
const int maxn = 5;
int m[maxn];
int w[maxn];
const int x[maxn] = {500, 1000, 1500, 2000, 2500};
int main() {
  int i;
  int s, u;
  for (i = 0; i < 5; i++) cin >> m[i];
  for (i = 0; i < 5; i++) cin >> w[i];
  cin >> s >> u;
  int sum = 0;
  int temp1, temp2;
  for (i = 0; i < 5; i++) {
    temp1 = 0.3 * x[i];
    temp2 = x[i] - m[i] * x[i] / 250 - 50 * w[i];
    sum += max(temp1, temp2);
  }
  sum += 100 * s - 50 * u;
  cout << sum << endl;
  return 0;
}
