#include <bits/stdc++.h>
using namespace std;
int arr1[6];
int arr2[6];
int arr3[3];
int points[] = {500, 1000, 1500, 2000, 2500};
int main() {
  int res = 0;
  for (int i = 0; i < 5; ++i) {
    cin >> arr1[i];
  }
  for (int i = 0; i < 5; ++i) {
    cin >> arr2[i];
  }
  for (int i = 0; i < 2; ++i) {
    cin >> arr3[i];
  }
  for (int i = 0; i < 5; ++i) {
    int temp = ((250 - arr1[i]) * points[i]) / 250 - 50 * arr2[i];
    res += max(3 * points[i] / 10, temp);
  }
  res += arr3[0] * 100;
  res -= arr3[1] * 50;
  cout << res << endl;
  return 0;
}
