#include <bits/stdc++.h>
using namespace std;
struct po {
  double m, w, x;
} a[10001];
int main() {
  int n = 5;
  a[1].x = 500;
  a[2].x = 1000;
  a[3].x = 1500;
  a[4].x = 2000;
  a[5].x = 2500;
  double z, y, ans = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%lf", &a[i].m);
  }
  for (int i = 1; i <= n; i++) {
    scanf("%lf", &a[i].w);
  }
  scanf("%lf%lf", &z, &y);
  for (int i = 1; i <= n; i++) {
    ans += max(0.3 * a[i].x, (1 - (a[i].m / 250)) * a[i].x - 50 * a[i].w);
  }
  ans += z * 100;
  ans -= y * 50;
  printf("%.0lf", ans);
  return 0;
}
