#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1 = 500;
  int x2 = 1000;
  int x3 = 1500;
  int x4 = 2000;
  int x5 = 2500;
  int m1, m2, m3, m4, m5;
  int w1, w2, w3, w4, w5;
  cin >> m1 >> m2 >> m3 >> m4 >> m5;
  cin >> w1 >> w2 >> w3 >> w4 >> w5;
  int hs, hi;
  cin >> hs >> hi;
  int sum = hs * 100 - hi * 50;
  int val1 = (x1 / 10) * 3;
  int vals1 = x1 - ((x1 * m1) / 250) - (50 * w1);
  sum += max(val1, vals1);
  val1 = (x2 / 10) * 3;
  vals1 = x2 - ((x2 * m2) / 250) - (50 * w2);
  sum += max(val1, vals1);
  val1 = (x3 / 10) * 3;
  vals1 = x3 - ((x3 * m3) / 250) - (50 * w3);
  sum += max(val1, vals1);
  val1 = (x4 / 10) * 3;
  vals1 = x4 - ((x4 * m4) / 250) - (50 * w4);
  sum += max(val1, vals1);
  val1 = (x5 / 10) * 3;
  vals1 = x5 - ((x5 * m5) / 250) - (50 * w5);
  sum += max(val1, vals1);
  cout << sum << endl;
  return 0;
}
