#include <bits/stdc++.h>
using namespace std;
const int INF = 0xfffffff;
const int N = 2000;
int n;
int m[5], w[5];
int x[5] = {2, 4, 6, 8, 10};
int main() {
  int h1, h2;
  memset(m, 0, sizeof(m));
  memset(w, 0, sizeof(w));
  for (int i = 0; i < 5; i++) {
    scanf("%d", &m[i]);
  }
  for (int i = 0; i < 5; i++) {
    scanf("%d", &w[i]);
  }
  scanf("%d %d", &h1, &h2);
  int sum = 0;
  for (int i = 0; i < 5; i++) {
    sum += max(3 * x[i] * 25, (250 - m[i]) * x[i] - 50 * w[i]);
  }
  sum += (h1 * 100 - h2 * 50);
  printf("%d\n", (int)sum);
  return 0;
}
