#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d, e, g, h, f;
  int i, j;
  double ara[5];
  double ara1[5];
  double sum;
  for (i = 0; i < 5; i++) {
    cin >> ara[i];
  }
  for (j = 0; j < 5; j++) {
    cin >> ara1[j];
  }
  cin >> c >> d;
  a = max(0.3 * 500, ((1 - (ara[0] / 250)) * 500) - (50 * ara1[0]));
  b = max(0.3 * 1000, ((1 - (ara[1] / 250)) * 1000) - (50 * ara1[1]));
  h = max(0.3 * 1500, ((1 - (ara[2] / 250)) * 1500) - (50 * ara1[2]));
  g = max(0.3 * 2000, ((1 - (ara[3] / 250)) * 2000) - (50 * ara1[3]));
  f = max(0.3 * 2500, ((1 - (ara[4] / 250)) * 2500) - (50 * ara1[4]));
  sum = a + b + h + g + f + c * 100 - d * 50;
  e = sum;
  cout << sum;
  return 0;
}
