#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[50];
  int w[60];
  int hs, hf;
  cin >> m[1] >> m[2] >> m[3] >> m[4] >> m[5];
  cin >> w[1] >> w[2] >> w[3] >> w[4] >> w[5];
  cin >> hs >> hf;
  double ans = 0;
  for (int i = 1; i <= 5; i++) {
    ans += ((double)(.3 * (500 * i)),
            (double)((500 * i - ((500 * i) / 250) * m[i]) - 50 * w[i]));
  }
  ans += (hs * 100) - (hf * 50);
  cout << (int)ceil(ans) << endl;
}
