#include <bits/stdc++.h>
int max(int n, int m) { return n > m ? n : m; }
int main() {
  int score, scoreall, succ, unsucc, i;
  int a[5], num[5];
  int s[] = {500, 1000, 1500, 2000, 2500};
  for (i = 0; i < 5; i++) scanf("%d", &a[i]);
  for (i = 0; i < 5; i++) scanf("%d", &num[i]);
  scanf("%d", &succ);
  scanf("%d", &unsucc);
  for (i = 0, scoreall = 0; i < 5; i++) {
    score = max(0.3 * s[i], (1 - a[i] / 250.0) * s[i] - 50 * num[i]);
    scoreall = score + scoreall;
  }
  scoreall = scoreall + 100 * succ - 50 * unsucc;
  printf("%d\n", scoreall);
  return 0;
}
