#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> minutes(5);
  vector<int> wrong(5);
  int score = 0;
  int tmp;
  int hs, hu;
  for (int i = 0; i < 5; ++i) {
    cin >> tmp;
    minutes[i] = tmp;
  }
  for (int i = 0; i < 5; ++i) {
    cin >> tmp;
    wrong[i] = tmp;
  }
  for (int i = 0; i < 5; ++i) {
    score += max(150 * (i + 1),
                 ((250 - (minutes[i])) * 2 * (i + 1) - 50 * wrong[i]));
  }
  cin >> hs >> hu;
  cout << ((int)score + hs * 100 - hu * 50) << endl;
  return 0;
}
