#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(0);
  int n, i, j, k, cnt;
  long double p[] = {500, 1000, 1500, 2000, 2500};
  long double m[10], w[10], s, u, sum = 0;
  for (i = 0; i <= 4; i++) cin >> m[i];
  for (i = 0; i <= 4; i++) cin >> w[i];
  cin >> s >> u;
  for (i = 0; i <= 4; i++) {
    long double a = 0.3 * p[i];
    long double b = ((1.0 - (m[i] / 250.0)) * p[i]) - 50.0 * w[i];
    if (a > b)
      sum += a;
    else
      sum += b;
  }
  sum += (s * 100.00);
  sum -= (u * 50.00);
  cout << sum;
  return 0;
}
