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