#include <bits/stdc++.h>
using namespace std;
int m[6], w[6], h[2];
int main() {
  for (int i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (int i = 0; i < 5; i++) scanf("%d", &w[i]);
  for (int i = 0; i < 2; i++) scanf("%d", &h[i]);
  int sum = 0;
  sum += max((int)(0.3 * 500), (250 - m[0]) * 500 / 250 - 50 * w[0]);
  sum += max((int)(0.3 * 1000), (250 - m[1]) * 1000 / 250 - 50 * w[1]);
  sum += max((int)(0.3 * 1500), (250 - m[2]) * 1500 / 250 - 50 * w[2]);
  sum += max((int)(0.3 * 2000), (250 - m[3]) * 2000 / 250 - 50 * w[3]);
  sum += max((int)(0.3 * 2500), (250 - m[4]) * 2500 / 250 - 50 * w[4]);
  sum += h[0] * 100;
  sum -= h[1] * 50;
  cout << sum;
  return 0;
}
