#include <bits/stdc++.h>
using namespace std;
double m[6], n[6], q, e, w, d, c, us, ne;
int main() {
  for (int i = 1; i <= 5; i++) {
    cin >> m[i];
  }
  for (int i = 1; i <= 5; i++) {
    cin >> n[i];
  }
  for (int i = 1; i <= 5; i++) {
    q = i * 500;
    e = 0.3 * q;
    w = (1 - (m[i] / 250.0)) * q - 50.0 * n[i];
    d = max(e, w);
    c += d;
  }
  cin >> us >> ne;
  c = c + (us * 100);
  c = c - (ne * 50);
  cout << c;
  return 0;
}
