#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  double m[5];
  for (int i = 0; i < 5; ++i) {
    std::cin >> m[i];
  }
  double w[5];
  for (int i = 0; i < 5; ++i) {
    std::cin >> w[i];
  }
  double hs, hu;
  std::cin >> hs;
  std::cin >> hu;
  double x[5];
  x[0] = 500;
  x[1] = 1000;
  x[2] = 1500;
  x[3] = 2000;
  x[4] = 2500;
  double total = 0;
  for (int i = 0; i < 5; ++i) {
    double newscore = (1 - m[i] / 250) * x[i] - 50 * w[i];
    if (newscore < 0.3 * x[i]) {
      newscore = 0.3 * x[i];
    }
    total += newscore;
  }
  total = total + hs * 100 - hu * 50;
  std::cout << (int)total << std::endl;
}
