#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long a[5];
  int b[5];
  int c, d;
  for (int i = 0; i < 5; ++i) cin >> a[i];
  for (int i = 0; i < 5; ++i) cin >> b[i];
  cin >> c >> d;
  double s1 = 0;
  for (int i = 0; i < 5; ++i) {
    s1 += max(0.3 * 500 * (i + 1),
              (1 - a[i] * 1.0 / 250) * 500 * (i + 1) - 50 * b[i]);
  }
  s1 += 100 * c - 50 * d;
  cout << (int)s1 << endl;
  return 0;
}
