#include <bits/stdc++.h>
using namespace std;
int h[2];
double m[5], w[5], x[5] = {500, 1000, 1500, 2000, 2500}, ans;
int main() {
  for (int i = (0); i < (5); ++i) cin >> m[i];
  for (int i = (0); i < (5); ++i) cin >> w[i];
  cin >> h[0] >> h[1];
  for (int i = (0); i < (5); ++i)
    ans +=
        max(0.3000 * x[i], (1.0000 - m[i] / 250.0000) * x[i] - 50.0000 * w[i]);
  printf("%d ", int(ans) + h[0] * 100 - h[1] * 50);
  return 0;
}
