#include <bits/stdc++.h>
using namespace std;
int aa[10][3];
int main() {
  int ans = 0, a, b;
  for (int i = 0; i < 5; i++) aa[i][0] = 500 * (i + 1);
  for (int i = 0; i < 5; i++) cin >> aa[i][1];
  for (int i = 0; i < 5; i++) {
    cin >> aa[i][2];
    ans += max((int)0.3 * aa[i][0],
               (aa[i][0] - aa[i][0] / 250 * aa[i][1] - 50 * aa[i][2]));
  }
  cin >> a >> b;
  ans += a * 100 - b * 50;
  cout << ans;
  return 0;
}
