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