#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[10], n[10], i, s = 0, h1, h2, l, l1;
  int k[5] = {500, 1000, 1500, 2000, 2500};
  for (i = 0; i < 5; ++i) {
    cin >> m[i];
  }
  for (i = 0; i < 5; ++i) {
    cin >> n[i];
  }
  cin >> h1 >> h2;
  for (i = 0; i < 5; ++i) {
    s += max(3 * k[i] / 10, (250 - m[i]) * k[i] / 250 - 50 * n[i]);
  }
  s = s + (h1 * 100);
  s = s - (50 * h2);
  cout << s;
}
