#include <bits/stdc++.h>
using namespace std;
int main() {
  float a[5], b[5], x, y, H = 500, C = 0;
  for (int i = 0; i < 5; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> b[i];
  }
  cin >> x >> y;
  for (int i = 0; i < 5; i++) {
    if ((float(3) / float(10)) * H >
        H * (1 - (a[i] / float(250))) - (50 * b[i])) {
      C += (float(3) / float(10)) * H;
    } else {
      C += H * (1 - (a[i] / float(250))) - (50 * b[i]);
    }
    H += 500;
  }
  C += 100 * x;
  C -= y * 50;
  cout << C;
  return 0;
}
