#include <bits/stdc++.h>
using namespace std;
double m[10], w[10];
int main() {
  double a, b;
  for (int i = 1; i <= 5; i++) cin >> m[i];
  for (int i = 1; i <= 5; i++) cin >> w[i];
  cin >> a >> b;
  double num = 0;
  double fen = 500;
  for (int i = 1; i <= 5; i++) {
    num += max(0.3 * fen, (1 * fen - m[i] * fen / 250.0) - 50 * w[i]);
    fen += 500;
  }
  cout << num + 100 * a - 50 * b;
  return 0;
}
