#include <bits/stdc++.h>
using namespace std;
const double N = 2e5 + 1;
const double INF = 1e18;
const double mod = 1e9 + 7;
double m1, m2, m3, m4, m5;
double w1, w2, w3, w4, w5;
double t, f;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> m1 >> m2 >> m3 >> m4 >> m5;
  cin >> w1 >> w2 >> w3 >> w4 >> w5;
  cin >> t >> f;
  m1 = max(0.3 * 500, (1 - (m1 / 250)) * 500 - 50 * w1);
  m2 = max(0.3 * 1000, (1 - (m2 / 250)) * 1000 - 50 * w2);
  m3 = max(0.3 * 1500, (1 - (m3 / 250)) * 1500 - 50 * w3);
  m4 = max(0.3 * 2000, (1 - (m4 / 250)) * 2000 - 50 * w4);
  m5 = max(0.3 * 2500, (1 - (m5 / 250)) * 2500 - 50 * w5);
  cout << ceil(m1 + m2 + m3 + m4 + m5) + (100 * t) - (50 * f);
}
