#include <bits/stdc++.h>
int main(void) {
  double m1, m2, m3, m4, m5;
  double w1, w2, w3, w4, w5;
  int hs, hu;
  scanf("%lf %lf %lf %lf %lf", &m1, &m2, &m3, &m4, &m5);
  scanf("%lf %lf %lf %lf %lf", &w1, &w2, &w3, &w4, &w5);
  scanf("%d %d", &hs, &hu);
  int s1, s2, s3, s4, s5;
  if (0.3 * 500 >= ((1 - m1 / 250) * 500 - 50 * w1))
    s1 = 0.3 * 500;
  else
    s1 = (250 - m1) * 2 - 50 * w1;
  if (0.3 * 1000 >= ((250 - m2) * 4 - 50 * w2))
    s2 = 0.3 * 1000;
  else
    s2 = (250 - m2) * 4 - 50 * w2;
  if (0.3 * 1500 >= ((250 - m3) * 6 - 50 * w3))
    s3 = 0.3 * 1500;
  else
    s3 = (250 - m3) * 6 - 50 * w3;
  if (0.3 * 2000 >= ((1 - m4 / 250) * 2000 - 50 * w4))
    s4 = 0.3 * 2000;
  else
    s4 = (250 - m4) * 8 - 50 * w4;
  if (0.3 * 2500 >= ((1 - m5 / 250) * 2500 - 50 * w5))
    s5 = 0.3 * 2500;
  else
    s5 = (250 - m5) * 10 - 50 * w5;
  printf("%d", s1 + s2 + s3 + s4 + s5 + 100 * hs - 50 * hu);
  return 0;
}
