#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long z, u;
  int d[] = {500, 1000, 1500, 2000, 2500};
  long long a[5], b[5];
  for (int i = 0; i < 5; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> b[i];
  }
  int ab, ba;
  cin >> ab >> ba;
  long long c[5];
  for (int i = 0; i < 5; i++) {
    u = d[i] - (1ll * d[i] * a[i] / 250) - 1ll * 50 * b[i];
    z = (1ll * 3 * d[i] / 10);
    c[i] = max(z, u);
  }
  for (int i = 1; i < 5; i++) {
    c[i] += c[i - 1];
  }
  long long t = 1ll * (ab)*100 - (1ll * ba * 50);
  cout << c[4] + t;
}
