#include <bits/stdc++.h>
using namespace std;
int main() {
  double minute[5];
  double wrong[5];
  double problem[5];
  double hs, p = 500, hu;
  double res1 = 0;
  double res;
  int res3 = 0;
  for (int i = 0; i < 5; i++) {
    cin >> minute[i];
    problem[i] = p;
    p += 500;
  }
  for (int i = 0; i < 5; i++) {
    cin >> wrong[i];
  }
  cin >> hs >> hu;
  for (int i = 0; i < 5; i++) {
    res = (double)(minute[i] / 250);
    res1 += ((1 - res) * problem[i]) - (50 * wrong[i]);
  }
  res3 = (res1) + (hs * 100) - (hu * 50);
  cout << res3 << endl;
  return 0;
}
