#include <bits/stdc++.h>
int max(int a, int b) {
  if (a < b)
    return b;
  else
    return a;
}
int main() {
  int m[5], w[5];
  int a[5] = {500, 1000, 1500, 2000, 2500};
  int hs, hu, i, sum;
  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);
  sum = 0;
  for (i = 0; i < 5; i++) {
    sum += max(3 * a[i] / 10, (a[i] - m[i] * a[i] / 250) - 50 * w[i]);
  }
  sum += 100 * hs - 50 * hu;
  printf("%d", sum);
  return 0;
}
