#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[10], b[10], m, n;
  int c[5] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < 5; i++) scanf("%d", &a[i]);
  for (int j = 0; j < 5; j++) scanf("%d", &b[j]);
  int sum = 0;
  int d = 500, e;
  for (int l = 0; l <= 4; l++) {
    sum += max(0.3 * c[l], (1 - a[l] / 250.0) * c[l] - 50.0 * b[l]);
    d = d + 500;
  }
  scanf("%d%d", &m, &n);
  sum += m * 100;
  sum -= n * 50;
  printf("%d\n", sum);
  return 0;
}
