#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[5], us[5], sh, ush;
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> us[i];
  }
  double sum = 0;
  for (int i = 0; i < 5; i++) {
    double s1 = 0.3 * 500 * (i + 1);
    double frac = double(m[i]) / 250;
    double s2 = ((1 - frac) * 500 * (i + 1)) - 50 * us[i];
    double s3 = max(s1, s2);
    sum += s3;
  }
  cin >> sh;
  sum += sh * 100;
  cin >> ush;
  sum -= ush * 50;
  cout << sum;
  return 0;
}
