#include <bits/stdc++.h>
using namespace std;
double m[10], w[10], hs, hu;
int main() {
  for (int i = 1; i <= 5; i++) scanf("%lf", &m[i]);
  for (int i = 1; i <= 5; i++) scanf("%lf", &w[i]);
  scanf("%lf%lf", &hs, &hu);
  double ans = 0.0;
  for (int i = 1; i <= 5; i++) {
    double x = 500.0 * i;
    ans += max((0.3 * x), (((1.0 - (m[i] / 250.0)) * x) - (50.0 * w[i])));
  }
  ans += hs * 100.0;
  ans -= hu * 50.0;
  printf("%.0lf\n", ans);
  return 0;
}
