#include <bits/stdc++.h>
using namespace std;
int main() {
  double a[6], b[6], c, d;
  double e[5] = {500, 1000, 1500, 2000, 2500};
  double totalscore = 0;
  for (int i = 0; i < 5; i++) cin >> a[i];
  for (int i = 0; i < 5; i++) cin >> b[i];
  cin >> c >> d;
  for (int i = 0; i < 5; i++)
    totalscore =
        totalscore + max(0.3 * e[i], (1 - a[i] / 250) * e[i] - 50 * b[i]);
  if (c) totalscore = totalscore + c * 100;
  if (d) totalscore = totalscore - d * 50;
  cout << totalscore;
  return 0;
}
