#include <bits/stdc++.h>
using namespace std;
const int MAX = 1000 + 10;
const double eps = 1e-10;
const double PI = acos(-1.0);
int main() {
  double a[5], b[5];
  int c, d;
  for (int i = 0; i < 5; ++i) scanf("%lf", &a[i]);
  for (int i = 0; i < 5; ++i) scanf("%lf", &b[i]);
  scanf("%d%d", &c, &d);
  double ans = 100.0 * c - 50.0 * d;
  for (int i = 0; i < 5; ++i) {
    ans += max(150.0 * (i + 1), (500.0 - 2 * a[i]) * (i + 1) - 50.0 * b[i]);
  }
  printf("%.0f\n", ans);
  return 0;
}
