#include <bits/stdc++.h>
using namespace std;
int main() {
  long double points[5] = {0}, wrong[5] = {0};
  long double hs, hu;
  long double arr[5] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < 5; i++) {
    cin >> points[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> wrong[i];
  }
  cin >> hs >> hu;
  long double sum = 0;
  for (int i = 0; i < 5; i++) {
    sum += max((long double)0.3 * arr[i],
               (long double)(1 - points[i] / 250) * (long double)arr[i] -
                   50 * wrong[i]);
  }
  sum += (hs * 100);
  sum += (hu * 50);
  cout << (long long)sum << endl;
  return 0;
}
