#include <bits/stdc++.h>
using namespace std;
double a[10], b[10], s[10];
int main() {
  double ans, sum;
  double code = 0;
  int x = 500;
  for (int i = 1; i <= 5; i++) {
    scanf("%lf", &a[i]);
  }
  for (int i = 1; i <= 5; i++) {
    scanf("%lf", &b[i]);
  }
  scanf("%lf%lf", &ans, &sum);
  for (int i = 1; i <= 5; i++) {
    s[i] += max(0.3 * x, (1 - a[i] / 250) * x - 50 * b[i]);
    x += 500;
  }
  for (int i = 1; i <= 5; i++) {
    code += s[i];
  }
  cout << code + ans * 100 - sum * 50 << endl;
  return 0;
}
