#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const int mod = 1000000007;
double m[111];
double w[111];
double f(double M, double W, int i) {
  double x = 500.0 * (i + 1);
  return max(0.3 * x, (1 - M / 250.0) * x - 50.0 * W);
}
int main() {
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> w[i];
  }
  double s, u;
  cin >> s >> u;
  double res = 0;
  for (int i = 0; i < 5; i++) {
    res += f(m[i], w[i], i);
  }
  res += 100.0 * s;
  res -= 50.0 * u;
  cout << res << endl;
  return 0;
}
