#include <bits/stdc++.h>
using namespace std;
double m[10], w[10], h[10];
double p[5] = {500, 1000, 1500, 2000, 2500};
int main() {
  ios_base::sync_with_stdio(false);
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  for (int i = 0; i < 2; i++) cin >> h[i];
  double sum = 0;
  for (int i = 0; i < 5; i++)
    sum += max(p[i] * 0.3, (p[i] - p[i] * m[i] / 250) - 50 * w[i]);
  sum += 100 * h[0];
  sum -= 50 * h[1];
  cout << max((int)sum, 0) << '\n';
}
