#include <bits/stdc++.h>
int main() {
  const int s[] = {500, 1000, 1500, 2000, 2500};
  int m[5];
  int t[5];
  int c[2];
  for (int i = 0; i < 5; ++i) std::cin >> m[i];
  for (int i = 0; i < 5; ++i) std::cin >> t[i];
  for (int i = 0; i < 2; ++i) std::cin >> c[i];
  int result = 0;
  int buf_result = 0;
  for (int i = 0; i < 5; ++i) {
    float left_part = (float)0.3 * s[i];
    float right_part = ((250 - m[i]) * s[i] - 50 * 250 * t[i]) / 250;
    buf_result = left_part > right_part ? left_part : right_part;
    result += buf_result;
  }
  result += c[0] * 100 - c[1] * 50;
  std::cout << result << std::endl;
  return 0;
}
