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