#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[6], b[6], i, h, k, c = 500, g;
  for (i = 1; i <= 5; i++) {
    cin >> a[6];
  }
  for (i = 1; i <= 5; i++) cin >> b[i];
  int m = 0;
  for (i = 1; i <= 5; i++) {
    m += max(3 * c / 10, c - g * a[i] - 50 * b[i]);
    c += 500;
    g += 2;
  }
  cin >> h >> k;
  m += h * 100 - k * 50;
  cout << m;
  return 0;
}
