#include <bits/stdc++.h>
using namespace std;
float max(float a, float b) {
  if (a >= b) {
    return a;
  } else {
    return b;
  }
}
int main() {
  float a[5], b[5], sum = 0, h[2], w = 0;
  for (int i = 0; i < 5; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> b[i];
  }
  for (int i = 0; i < 2; i++) {
    cin >> h[i];
  }
  float j;
  int i;
  for (i = 0, j = 500; i < 5; i++, j += 500) {
    w = (1 - a[i] / 250) * j - 50 * b[i];
    sum = sum + max(w, 0.3 * j);
  }
  sum += h[0] * 100 - h[1] * 50;
  cout << (int)sum;
}
