#include <bits/stdc++.h>
using namespace std;
int main() {
  double m[5], w[5], g, b;
  for (int i = 0; i < 5; i++) {
    cin >> m[i];
  }
  for (int i = 0; i < 5; i++) {
    cin >> w[i];
  }
  cin >> g >> b;
  int sum = 0;
  for (int i = 0; i < 5; i++) {
    int x;
    if (i == 0) x = 500;
    if (i == 1) x = 1000;
    if (i == 2) x = 1500;
    if (i == 3) x = 2000;
    if (i == 4) x = 2500;
    sum += max(0.3 * x, double((1 - double(m[i] / 250)) * x) - 50 * w[i]);
  }
  sum += g * 100;
  sum -= b * 50;
  cout << sum;
}
