#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long m[5], w[5], s[5] = {500, 1000, 1500, 2000, 2500};
  for (long long i = 0; i < 5; ++i) cin >> m[i];
  for (long long i = 0; i < 5; ++i) cin >> w[i];
  long long x, y;
  cin >> x >> y;
  double ans = x * 100 - y * 50;
  for (long long i = 0; i < 5; ++i)
    ans +=
        max((long double)0.3 * s[i],
            (s[i] - s[i] * m[i] / (long double)250) - (long double)50 * w[i]);
  cout << (long long)ans << "\n";
  return 0;
}
