#include <bits/stdc++.h>
using namespace std;
int m[7], w[7], hs, hu;
double pt[] = {500.0, 1000.0, 1500.0, 2000.0, 2500.0};
double acum;
double points(int it) {
  double a = 0.3 * pt[it];
  double b =
      (1.0 - ((double)m[it] / 250.0)) * (double)pt[it] - 50.0 * (double)w[it];
  return max(a, b);
}
int main() {
  for (int i = 0; i < 5; i++) {
    scanf("%d", &m[i]);
  }
  for (int i = 0; i < 5; i++) {
    scanf("%d", &w[i]);
  }
  scanf("%d %d", &hs, &hu);
  for (int i = 0; i < 5; i++) {
    acum += points(i);
  }
  acum += 100.0 * (double)hs - 50.0 * (double)hu;
  int ans = acum;
  printf("%d", ans);
  return 0;
}
