#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0), cin.tie(0);
  long long t = 1;
  while (t--) {
    long long m[5], w[5], s, u;
    for (long long(i) = (0); (i) < (5); (i)++) cin >> m[i];
    for (long long(i) = (0); (i) < (5); (i)++) cin >> w[i];
    cin >> s >> u;
    long long ans = 0;
    for (long long(i) = (0); (i) < (5); (i)++) {
      long long p = 500 + i * 500;
      ans += max(0.3 * p, (double)(((250 - m[i]) / 250.0) * p) - 50 * w[i]);
    }
    ans += (100 * s);
    ans -= (50 * u);
    cout << ans << "\n";
  }
}
