#include <bits/stdc++.h>
int main() {
  int i, m[15], w[15], s[5] = {500, 1000, 1500, 2000, 2500}, h1, h2;
  long long int score = 0;
  for (i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (i = 0; i < 5; i++) scanf("%d", &w[i]);
  scanf("%d %d", &h1, &h2);
  for (i = 0; i < 5; i++) {
    score += fmax(0.3 * s[i],
                  ((float)((float)(250 - m[i]) / 250)) * s[i] - (50 * w[i]));
  }
  score += (100 * h1);
  score -= (h2 * 50);
  printf("%lld\n", (long long int)score);
  return 0;
}
