#include <bits/stdc++.h>
const double x[5] = {500, 1000, 1500, 2000, 2500};
double m[5], w[5], hs, hu, result;
void putInp() {
  for (int i = 0; i < 5; i++) {
    scanf("%lf", m + i);
  }
  for (int i = 0; i < 5; i++) {
    scanf("%lf", w + i);
  }
  scanf("%lf %lf", &hs, &hu);
}
int main() {
  putInp();
  for (int i = 0; i < 5; i++) {
    result += std::max(0.30 * x[i], (1 - (m[i] / 250)) * x[i] - 50 * w[i]);
  }
  result += 100 * hs - 50 * hu;
  printf("%.0lf\n", result);
  return 0;
}
