#include <bits/stdc++.h>
using namespace std;
int a[6], m[6], w[6], x, y;
int main(int argc, char** argv) {
  a[0] = 500;
  a[1] = 1000;
  a[2] = 1500;
  a[3] = 2000;
  a[4] = 2500;
  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", &x, &y);
  int sum = 0;
  for (int i = 0; i < 5; i++) {
    sum += max(int(0.3 * a[i]), ((250 - m[i]) * a[i] / 250 - 50 * w[i]));
  }
  sum += x * 100 - 50 * y;
  printf("%d", sum);
  return 0;
}
