#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[5] = {500, 1000, 1500, 2000, 2500};
  int m[5], w[5], hs, hu;
  int ans = 0, s1, s2;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> hs >> hu;
  for (int i = 0; i < 5; i++) {
    s1 = x[i] * 3 / 10;
    s2 = x[i] - (m[i] * x[i]) / 250 - 50 * w[i];
    ans += max(s1, s2);
  }
  ans += 100 * hs - 50 * hu;
  cout << ans;
  return 0;
}
