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