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