#include <bits/stdc++.h>
int main() {
  int m[5], w[5], h0, h1, b[5];
  int a[5];
  int i, s = 0;
  for (i = 0; i < 5; i++) {
    scanf("%d", &m[i]);
  }
  getchar();
  for (i = 0; i < 5; i++) {
    scanf("%d", &w[i]);
  }
  getchar();
  scanf("%d%d", &h0, &h1);
  a[0] = (250 - m[0]) * 2 - 50 * w[0];
  a[1] = (250 - m[1]) * 4 - 50 * w[1];
  a[2] = (250 - m[2]) * 6 - 50 * w[2];
  a[3] = (250 - m[3]) * 8 - 50 * w[3];
  a[4] = (250 - m[4]) * 10 - 50 * w[4];
  b[0] = 0.3 * 500;
  b[1] = 0.3 * 1000;
  b[2] = 0.3 * 1500;
  b[3] = 0.3 * 2000;
  b[4] = 0.3 * 2500;
  for (i = 0; i < 5; i++) {
    if (a[i] > b[i])
      s += a[i];
    else
      s += b[i];
  }
  s = s + h0 * 100 - h1 * 50;
  printf("%d", s);
  return 0;
}
