#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[5], w[5];
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  int hs, hu;
  cin >> hs >> hu;
  int sum = 0;
  for (int i = 0; i < 5; i++) {
    sum +=
        max(3 * (500 + 500 * i) / 10,
            (1 * (500 + 500 * i) - m[i] * (500 + 500 * i) / 250) - 50 * w[i]);
  }
  sum += hs * 100 - hu * 50;
  cout << sum << endl;
  return 0;
}
