#include <bits/stdc++.h>
using namespace std;
const double a1 = 500;
const double a2 = 1000;
const double a3 = 1500;
const double a4 = 2000;
const double a5 = 2500;
const double mn = 0.3;
int main() {
  double m1, m2, m3, m4, m5;
  cin >> m1 >> m2 >> m3 >> m4 >> m5;
  double w1, w2, w3, w4, w5;
  cin >> w1 >> w2 >> w3 >> w4 >> w5;
  int a, b;
  cin >> a >> b;
  double sum = 0;
  sum += max(mn * a1, (1 - (m1 / 250)) * 500 - 50 * w1);
  sum += max(mn * a2, (1 - (m2 / 250)) * 1000 - 50 * w2);
  sum += max(mn * a3, (1 - (m3 / 250)) * 1500 - 50 * w3);
  sum += max(mn * a4, (1 - (m4 / 250)) * 2000 - 50 * w4);
  sum += max(mn * a5, (1 - (m5 / 250)) * 2500 - 50 * w5);
  cout << int(sum + 100 * a - 50 * b);
  return 0;
}
