#include <bits/stdc++.h>
using namespace std;
int main() {
  float x[5] = {500, 1000, 1500, 2000, 2500};
  float m[5];
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  float w[5];
  for (int i = 0; i < 5; i++) {
    cin >> w[i];
  }
  float s[2];
  for (int i = 0; i < 2; i++) {
    cin >> s[i];
  }
  float sum = 0;
  float y, e, as;
  float d = 250;
  for (int i = 0; i < 5; i++) {
    y = ((1 - (m[i] / d)) * x[i]) - (50 * w[i]);
    e = 0.3 * x[i];
    as = max(y, e);
    sum = sum + as;
  }
  cout << sum + (s[0] * 100) - (s[1] * 50);
  return 0;
}
