#include <bits/stdc++.h>
using namespace std;
long long m[100006], w[10], n;
int main() {
  long long ans = 0, h1, h2;
  n = 5;
  long long x[5] = {2, 4, 6, 8, 10};
  long long X[5] = {150, 300, 450, 600, 750};
  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++) {
    long long k;
    k = x[i] * (250 - m[i]) - 50 * w[i];
    ans += max(X[i], k);
  }
  ans += (h1 * 100 - h2 * 50);
  cout << ans;
}
