#include <bits/stdc++.h>
int maximum(int a, int b) {
  if (a >= b)
    return a;
  else
    return b;
}
int main(void) {
  int i, j, k, l, e, m[6], w[6], pr[5] = {500, 1000, 1500, 2000, 2500}, h[3];
  double sum[6], fres, max1, max2, flag1, flag2, flag3;
  for (i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (j = 0; j < 5; j++) scanf("%d", &w[j]);
  for (k = 0; k < 2; k++) scanf("%d", &h[k]);
  for (l = 0; l < 5; l++) {
    max1 = 0.3 * pr[l];
    flag1 = 250 - m[l];
    flag2 = flag1 / 250;
    flag3 = flag2 * pr[l];
    max2 = flag3 - (50 * w[l]);
    sum[l] = maximum(max1, max2);
  }
  for (e = 0; e < 5; e++) fres = fres + sum[e];
  if (h[0] != 0) fres = fres + (100 * h[0]);
  if (h[1] != 0) fres = fres - (50 * h[1]);
  printf("%.f\n", fres);
  return 0;
}
