#include <bits/stdc++.h>
int max(int a, int b) { return (a > b) ? a : b; }
int main() {
  int x[5] = {500, 1000, 1500, 2000, 2500};
  int m[5], w[5];
  int hs, hu;
  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 ", &hs, &hu);
  int score = 0;
  for (int i = 0; i < 5; i++) {
    score +=
        max((int)(0.3 * x[i]), (int)((250 - m[i]) * (x[i] / 250) - 50 * w[i]));
  }
  score += 100 * hs;
  score -= 50 * hu;
  printf("%d", score);
  return 0;
}
