#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 0, m[6], w[6], h1, h2;
  for (int i = 1; i <= 5; i++) cin >> m[i];
  for (int i = 1; i <= 5; i++) cin >> w[i];
  cin >> h1 >> h2;
  for (int i = 1; i <= 5; i++)
    sum += max(i * 150, i * 2 * (250 - m[i]) - w[i] * 50);
  sum += (h1 * 100 - h2 * 50);
  cout << (sum > 0 ? sum : 0) << endl;
  return 0;
}
