#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  vector<double> m(5), w(5);
  for (int i = 0; i < 5; ++i) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; ++i) {
    cin >> w[i];
  }
  int score = 0;
  double x = 50;
  for (int i = 0; i < 5; ++i) {
    score += max(3 * x, (250 - m[i]) * (2 * (i + 1)) - (50 * w[i]));
    x += 50;
  }
  int h1, h2;
  cin >> h1 >> h2;
  score += (100) * h1 + (-50) * h2;
  cout << score << endl;
}
