#include <bits/stdc++.h>
using namespace std;
int main() {
  float s, u, point = 0, temp;
  int i;
  float m[10], w[10];
  for (i = 0; i < 5; i++) cin >> m[i];
  for (i = 0; i < 5; i++) cin >> w[i];
  cin >> s >> u;
  for (i = 0; i < 5; i++) {
    temp = (500 - 2 * m[i]) * (i + 1) - 50 * w[i];
    if (temp < 0.3 * (i + 1) * 500) temp = 0.3 * (i + 1) * 500;
    point += temp;
  }
  point = point + 100 * s - 50 * u;
  cout << point;
  return 0;
}
