#include <bits/stdc++.h>
using namespace std;
double max(double a, double b) {
  if (a >= b)
    return a;
  else
    return b;
}
int main() {
  double m[5], s, u;
  for (int i = 0; i < 5; i++) cin >> m[i];
  double sum = 0, sum1;
  for (int i = 0; i < 5; i++) {
    sum1 = 0;
    double x;
    cin >> x;
    sum1 += ((250 - m[i]) / 250.0) * (500) * float(i + 1);
    sum1 -= 50 * x;
    sum += max(sum1, double(0.3 * double(i + 1) * 500.0));
  }
  cin >> s >> u;
  cout << sum + 100 * s - 50 * u;
  return 0;
}
