#include <bits/stdc++.h>
template <typename T>
void chmax(T &t, const T &f) {
  if (t < f) t = f;
}
using namespace std;
unsigned long long int m[10], w[10], s, u, res = 0;
unsigned long long int x[10] = {500, 1000, 1500, 2000, 2500};
unsigned long long int getScore(unsigned long long int a) {
  unsigned long long int aa = 3 * x[a] / 10;
  unsigned long long int bb = (1 - (4 * m[a] / 1000)) * x[a] - 50 * w[a];
  return max(0.3 * x[a - 1], ((1.0 - (m[a] / 250.0)) * x[a - 1] - 50.0 * w[a]));
}
int main() {
  for (int i = 1; i <= 5; i++) cin >> m[i];
  for (int i = 1; i <= 5; i++) cin >> w[i];
  cin >> s >> u;
  for (int i = 1; i <= 5; i++) res += getScore(i);
  res += (s * (100.0) - u * (50.0));
  cout << res;
  return 0;
}
