#include <bits/stdc++.h>
using namespace std;
double m1, m2, m3, m4, m5, w1, w2, w3, w4, w5, t, f;
int main() {
  cin >> m1 >> m2 >> m3 >> m4 >> m5 >> w1 >> w2 >> w3 >> w4 >> w5 >> t >> f;
  cout << max(150.0, (1.0 - m1 / 250.0) * 500 - 50.0 * w1) +
              max(300.0, (1.0 - m2 / 250.0) * 1000.0 - 50.0 * w2) +
              max(450.0, (1 - m3 / 250.0) * 1500.0 - 50.0 * w3) +
              max(600.0, (1 - m4 / 250.0) * 2000.0 - 50.0 * w4) +
              max(750.0, (1.0 - m5 / 250.0) * 2500.0 - 50.0 * w5) + t * 100 -
              f * 50;
  return 0;
}
