#include <bits/stdc++.h>
using namespace std;
int main() {
  double m[5], w[5];
  double M[] = {500.0, 1000.0, 1500.0, 2000.0, 2500.0};
  double hs, hu;
  double ans = 0;
  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(0.3 * M[i], (1.0 - m[i] / 250.0) * M[i] - 50.0 * w[i]);
  }
  ans = ans + 100.0 * hs - 50.0 * hu;
  cout << ans << endl;
}
