#include <bits/stdc++.h>
using namespace std;
int b[10], a[10], h1, h2, sum;
int main() {
  for (int i = 1; i <= 5; ++i) {
    cin >> a[i];
  }
  for (int i = 1; i <= 5; ++i) {
    int x;
    cin >> x;
    sum += max((150 * i), ((250 - a[i]) * 2 * i) - (50 * x));
  }
  cin >> h1 >> h2;
  cout << sum + (100 * h1) - (50 * h2);
  return 0;
}
