#include <bits/stdc++.h>
using namespace std;
int m[100006], w[10], n;
int main() {
  int ans = 0, h1, h2;
  n = 5;
  int x[5] = {2, 4, 6, 8, 10};
  int X[5] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < n; i++) cin >> m[i];
  for (int i = 0; i < n; i++) cin >> w[i];
  cin >> h1 >> h2;
  for (int i = 0; i < n; i++) {
    int k;
    k = x[i] * (250 - m[i]) - 50 * w[i];
    ans += max((int)0.3 * X[i], k);
  }
  ans += (h1 * 100 - h2 * 50);
  cout << ans;
}
