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