#include <bits/stdc++.h>
using namespace std;
int main() {
  double m[5], w[5], sh, uh, sc[5] = {500, 1000, 1500, 2000, 2500};
  for (auto &x : m) cin >> x;
  for (auto &x : w) cin >> x;
  cin >> sh >> uh;
  double score = 0;
  for (int i = 0; i < 5; ++i) {
    score += ((10.0 * sc[i]) / 3, sc[i] * (250 - m[i]) / 250.0 - (w[i] * 50));
  }
  score += sh * 100, score -= uh * 50;
  cout << score << endl;
}
