#include <bits/stdc++.h>
using namespace std;
int main() {
  double min[5];
  double wrong[5];
  double maxScore[5] = {500, 1000, 1500, 2000, 2500};
  int success = 0, unsuccess = 0;
  for (int i = 0; i < 5; ++i) cin >> min[i];
  for (int j = 0; j < 5; ++j) cin >> wrong[j];
  double res = 0.0;
  for (int k = 0; k < 5; ++k) {
    res += max(0.3 * maxScore[k],
               (1 - (min[k] / 250.0)) * maxScore[k] - (50.0 * wrong[k]));
  }
  cin >> success;
  cin >> unsuccess;
  res += 100 * success;
  res -= 50 * unsuccess;
  cout << res;
  return 0;
}
