#include <bits/stdc++.h>
using namespace std;
int main() {
  double m1, m2, m3, m4, m5, w1, w2, w3, w4, w5, hs, hu;
  cin >> m1 >> m2 >> m3 >> m4 >> m5 >> w1 >> w2 >> w3 >> w4 >> w5 >> hs >> hu;
  double fin = 0;
  fin = fin + max(0.3 * 500, (1 - .004 * m1) * 500 - 50 * w1);
  fin = fin + max(0.3 * 1000, (1 - .004 * m2) * 1000 - 50 * w2);
  fin = fin + max(0.3 * 1500, (1 - .004 * m3) * 1500 - 50 * w3);
  fin = fin + max(0.3 * 2000, (1 - .004 * m4) * 2000 - 50 * w4);
  fin = fin + max(0.3 * 2500, (1 - .004 * m5) * 2500 - 50 * w5);
  fin = fin + hs * 100 - hu * 50;
  cout << fin << endl;
  return 0;
}
