#include <bits/stdc++.h>
int power(int base, int exp) {
  int sum = 1;
  for (int i = 0; i < exp; i++) {
    sum *= base;
  }
  return sum;
}
int maxV(int a, int b) {
  if (a < b)
    return b;
  else
    return a;
}
int main() {
  int* times = (int*)malloc(sizeof(int) * 5);
  int* mistakes = (int*)malloc(sizeof(int) * 5);
  int probVal[5] = {500, 1000, 1500, 2000, 2500};
  int hacks, fHacks;
  int totalPoints = 0;
  for (int i = 0; i < 5; i++) {
    std::cin >> times[i];
  }
  for (int i = 0; i < 5; i++) {
    std::cin >> mistakes[i];
  }
  std::cin >> hacks >> fHacks;
  for (int i = 0; i < 5; i++) {
    totalPoints += maxV(((1.0 - ((double)times[i] / 250.0)) * probVal[i]) -
                            (50 * (double)mistakes[i]),
                        0.3 * (double)probVal[i]);
  }
  totalPoints += 100 * hacks;
  totalPoints -= 50 * fHacks;
  std::cout << totalPoints;
  return 0;
}
