#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  vector<double> M(5), W(5);
  for (int i = 0; i < 5; ++i) cin >> M[i];
  for (int i = 0; i < 5; ++i) cin >> W[i];
  double hs, hu;
  cin >> hs >> hu;
  double ans = 0, cur = 500;
  for (int i = 0; i < 5; ++i) {
    ans += max(0.3 * cur, (1 - M[i] / 250) * cur - 50 * W[i]);
    cur += 500;
  }
  ans += hs * 100 - hu * 50;
  cout << ans << "\n";
  return 0;
}
