#include <bits/stdc++.h>
double max(double a, int b) {
  if (a > b) return a;
  return b;
}
int main() {
  double m[5], w[5], x[5] = {500, 1000, 1500, 2000, 2500};
  int i;
  for (i = 0; i < 5; ++i) {
    scanf("%lf", &m[i]);
  }
  for (i = 0; i < 5; ++i) {
    scanf("%lf", &w[i]);
  }
  double h1, h2, sum = 0;
  scanf("%lf%lf", &h1, &h2);
  for (i = 0; i < 5; ++i) {
    sum = sum + max(0.3 * x[i], x[i] - x[i] / 250 * m[i] - 50 * w[i]);
  }
  printf("%.0lf\n", sum + 100 * h1 - 50 * h2);
}
