#include <bits/stdc++.h>
using namespace std;
double t[10], not_g[100];
int main() {
  ios_base::sync_with_stdio(0);
  double score[5] = {500, 1000, 1500, 2000, 2500};
  int n = 5;
  for (int i = 0; i < n; i++) {
    cin >> t[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> not_g[i];
  }
  int hg, hb;
  cin >> hg >> hb;
  double ans = hg * 100 - hb * 50;
  for (int i = 0; i < n; i++) {
    ans += max(0.3 * score[i],
               (1 - (double)t[i] / 250) * score[i] - 50 * not_g[i]);
  }
  cout << ans;
  return 0;
}
