#include <bits/stdc++.h>
int main() {
  double countTime[5];
  double countErrors[5];
  double countVzlom[2];
  int sum = 0;
  for (int i = 0; i < 5; i++) {
    std::cin >> countTime[i];
  }
  for (int i = 0; i < 5; i++) {
    std::cin >> countErrors[i];
  }
  for (int i = 0; i < 2; i++) {
    std::cin >> countVzlom[i];
  }
  int p = 1;
  for (int i = 0; i < 5; i++) {
    if (((1 - countTime[i] / 250) * p * 500) - 50 * countErrors[i] <
        0.3 * p * 500)
      sum += ((1 - countTime[i] / 250) * p * 500);
    else
      sum += 0.3 * p * 500;
    p++;
  }
  sum = sum + (countVzlom[0] * 100 - countVzlom[1] * 50);
  std::cout << sum;
  return 0;
}
