#include <bits/stdc++.h>
using namespace std;
int main() {
  double a[5], m[5], w[5], h1, h2;
  int i;
  double co, sum = 0;
  for (i = 0; i < 5; i++) {
    a[i] = (i + 1) * 500;
  }
  for (i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (i = 0; i < 5; i++) {
    cin >> w[i];
  }
  cin >> h1 >> h2;
  for (i = 0; i < 5; i++) {
    co = max(0.3 * a[i], a[i] - (m[i] * a[i]) / 250 - 50 * w[i]);
    sum += co;
  }
  sum += 100 * h1 - 50 * h2;
  cout << sum;
  return 0;
}
