#include <bits/stdc++.h>
using namespace std;
;
int main() {
  float 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;
  float res = 0;
  for (int i = 1; i <= 5; i++) {
    res += max(0.3f * 500 * i, (1 - m[i] / 250) * 500 * i - 50 * w[i]);
  }
  res += h1 * 100;
  res -= h2 * 50;
  cout << (int)res;
  return 0;
}
