#include <bits/stdc++.h>
using namespace std;
double m[10], w[10], score[10];
double bmy, AK, IOI = 0;
int main() {
  for (int i = 1; i <= 5; i++) {
    score[i] = score[i - 1] + 500;
    cin >> m[i];
  }
  for (int i = 1; i <= 5; i++) {
    cin >> w[i];
  }
  cin >> bmy >> AK;
  for (int i = 1; i <= 5; i++) {
    IOI += max(score[i] * 0.3, (1.0 - m[i] / 250) * score[i] - 50 * w[i]);
  }
  IOI += 100 * bmy - 50 * AK;
  cout << IOI << endl;
  return 0;
}
