#include <bits/stdc++.h>
using namespace std;
double t, n, m, i, j, ans, k, a, b, c, d, e, row, col, sz, f, g, lo, hi, mid;
string s, s2, s3, s4;
int ar[(int)(1e6 + 10)], ar2[(int)(1e6 + 10)];
void brainfuck();
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  brainfuck();
  return 0;
}
void brainfuck() {
  cin >> a >> b >> c >> d >> e;
  cin >> f;
  a = max((0.3 * 500.00), (1.00 - (a / 250.00)) * 500.00 - (50.00 * f));
  cin >> f;
  b = max((0.3 * 1000.00), (1.00 - (b / 250.00)) * 1000.00 - (50.00 * f));
  cin >> f;
  c = max((0.3 * 1500.00), (1.00 - (c / 250.00)) * 1500.00 - (50.00 * f));
  cin >> f;
  d = max((0.3 * 2000.00), (1.00 - (d / 250.00)) * 2000.00 - (50.00 * f));
  cin >> f;
  e = max((0.3 * 2500.00), (1.00 - (e / 250.00)) * 2500.00 - (50.00 * f));
  e += (a + b + c + d);
  cin >> a >> b;
  e += (100.00 * a);
  e -= (50.00 * b);
  cout << fixed << setprecision(0) << e;
}
