#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int x[6] = {0, 500, 1000, 1500, 2000, 2500};
int m[6], w[6];
int hs, hu;
int main() {
  for (int i = 1; i <= 5; i++) scanf("%d", &m[i]);
  for (int i = 1; i <= 5; i++) scanf("%d", &w[i]);
  scanf("%d%d", &hs, &hu);
  int sum = 0;
  for (int i = 1; i <= 5; i++) {
    sum += max(0.3 * x[i], (1 - 1.0 * m[i] / 250) * x[i] - 50 * w[i]);
  }
  sum += hs * 100 - 50 * hu;
  printf("%d\n", sum);
}
