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