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