#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<double> x(5);
  x[0] = 500;
  x[1] = 1000;
  x[2] = 1500;
  x[3] = 2000;
  x[4] = 2500;
  vector<double> m(5);
  vector<double> w(5);
  double ans = 0;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  for (int i = 0; i < 5; i++) {
    ans += max(0.3 * x[i], (1.0 - m[i] / 250.0) * x[i] - 50.0 * w[i]);
  }
  double hs, hu;
  cin >> hs >> hu;
  ans = ans + hs * 100.0 - hu * 50.0;
  cout << ans;
}
