#include <bits/stdc++.h>
using namespace std;
int v1[10], v2[10];
int main() {
  int n = 5, a, b;
  double s = 0;
  for (int i = 1; i <= n; i++) scanf("%d", &v1[i]);
  for (int i = 1; i <= n; i++) scanf("%d", &v2[i]);
  scanf("%d%d", &a, &b);
  for (int i = 1; i <= n; i++)
    s += max(0.3 * i * 500.0, (1.0 - v1[i] / 250.0) * i * 500 - 50.0 * v2[i]);
  s += a * 100.0 - b * 50.0;
  int sol = s;
  printf("%d", sol);
  return 0;
}
