#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[5], b[5], c[5] = {500, 1000, 1500, 2000, 2500};
  int sum = 0, A, B;
  for (int i = 0; i < 5; i++) cin >> a[i];
  for (int i = 0; i < 5; i++) cin >> b[i];
  cin >> A >> B;
  for (int i = 0; i < 5; i++) {
    sum += max(c[i] * 3 / 10, (250 - a[i]) * c[i] / 250 - 50 * b[i]);
  }
  sum += 100 * A - 50 * B;
  cout << sum << endl;
  return 0;
}
