#include <bits/stdc++.h>
int main() {
  int m[5], w[5], h[2], mw[5], i, score = 0;
  int c[5] = {150, 300, 450, 600, 750};
  for (i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (i = 0; i < 5; i++) scanf("%d", &w[i]);
  for (i = 0; i < 2; i++) scanf("%d", &h[i]);
  for (i = 0; i < 5; i++) mw[i] = (250 - m[i]) * (i + 1) * 2 - 50 * w[i];
  for (i = 0; i < 5; i++) {
    if (mw[i] > c[i])
      score += mw[i];
    else
      score += c[i];
  }
  score = score + (h[0] * 100) - (h[1] * 50);
  printf("%d\n", score);
  return 0;
}
