#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[5], w[5], sh, uh;
  int mp[] = {500, 1000, 1500, 2000, 2500};
  int i;
  double t, p = 0;
  for (i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (i = 0; i < 5; i++) scanf("%d", &w[i]);
  scanf("%d%d", &sh, &uh);
  for (i = 0; i < 5; i++) {
    t = (1 - (m[i] / 250.0));
    p += max((double)0.3 * mp[i], t * mp[i] - 50 * w[i]);
  }
  p += 100 * sh;
  p -= 50 * uh;
  printf("%.f", p);
  return 0;
}
