#include <bits/stdc++.h>
using namespace std;
int a[510][510], visited[510][510];
int main() {
  int m[5], w[5], hs, hu, i, j, k, x[5];
  x[0] = 500;
  x[1] = 1000;
  x[2] = 1500;
  x[3] = 2000;
  x[4] = 2500;
  double s = 0;
  for (i = 0; i <= 4; i++) {
    cin >> m[i];
  }
  for (i = 0; i <= 4; i++) {
    cin >> w[i];
  }
  cin >> hs >> hu;
  for (i = 0; i <= 4; i++)
    s += max(0.3 * (double)x[i],
             1.0 * ((1 - (double)m[i] / 250) * x[i] - 50 * w[i]));
  s += 100 * hs;
  s -= 50 * hu;
  cout << s;
  return 0;
}
