#include <bits/stdc++.h>
using namespace std;
double X[5] = {500, 1000, 1500, 2000, 2500};
double W[5];
double m[5];
int main() {
  double ans = 0.0;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> W[i];
  double he, hf;
  cin >> he >> hf;
  ans = ans + 100 * he - 50 * hf;
  for (int i = 0; i < 5; i++) {
    ans = ans + max(0.3 * X[i], (1 - (m[i] / 250)) * X[i] - 50 * W[i]);
  }
  cout << ans << endl;
}
