#include <bits/stdc++.h>
using namespace std;
int m[5], w[5], h[2], x[5];
int main(void) {
  x[0] = 500;
  x[1] = 1000;
  x[2] = 1500;
  x[3] = 2000;
  x[4] = 2500;
  double ans = 0;
  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) {
    double a = (double)((double)0.3 * (double)x[i]);
    double b = (double)((double)((double)1 - ((double)m[i] / (double)250)) *
                            (double)x[i] -
                        (double)((double)50 * (double)w[i]));
    if (a > b)
      ans += a;
    else
      ans += b;
  }
  ans += (double)((double)h[0] * (double)100 - (double)h[1] * (double)50);
  printf("%d\n", (int)ans);
  return 0;
}
