#include <bits/stdc++.h>
using namespace std;
int points[] = {500, 1000, 1500, 2000, 2500};
inline double AddTask(double m, double w, int i) {
  return max(0.3 * points[i], (1 - m / 250.0) * points[i] - 50 * w);
}
int main(void) {
  ios::sync_with_stdio(false);
  srand(time(0));
  double ans = 0;
  vector<double> m(5), w(5);
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  double hs, hu;
  cin >> hs >> hu;
  for (int i = 0; i < 5; i++) ans += AddTask(m[i], w[i], i);
  ans += 100 * hs;
  ans -= 50 * hu;
  cout << ans << endl;
  return 0;
}
