#include <bits/stdc++.h>
using namespace std;
float a[10], m[10], w[10];
long long res;
int tg1, tg2;
float ma(float a, float b) {
  if (a > b) return a;
  return b;
}
int main() {
  a[1] = 500;
  a[2] = 1000;
  a[3] = 1500;
  a[4] = 2000;
  a[5] = 2500;
  for (int i = (1); i <= (5); i++) scanf("%f", &m[i]);
  for (int i = (1); i <= (5); i++) scanf("%f", &w[i]);
  for (int i = (1); i <= (5); i++)
    res += int(ma(0.3 * a[i], float(1 - m[i] / 250) * a[i] - 50 * w[i]));
  cin >> tg1 >> tg2;
  res += tg1 * 100;
  res -= tg2 * 50;
  cout << res;
  return 0;
}
