#include <bits/stdc++.h>
using namespace std;
int main() {
  double x[5] = {500, 1000, 1500, 2000, 2500};
  double m[5], w[5];
  double s, u;
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> w[i];
  }
  cin >> s >> u;
  double ans = 0.0;
  for (int i = 0; i < 5; i++) {
    ans += max(0.3 * x[i], (x[i] - (x[i] / 250) * m[i]) - 50 * w[i]);
  }
  ans += 100 * s;
  ans -= 50 * u;
  printf("%g\n", ans);
  return 0;
}
