#include <bits/stdc++.h>
signed main() {
  double w[5], x[5], m[5], sc = 0, ac, wrong;
  for (int i = 0; i < 5; i++) scanf("%lf", &m[i]), x[i] = i * 500 + 500;
  for (int i = 0; i < 5; i++) scanf("%lf", &w[i]);
  scanf("%lf%lf", &ac, &wrong);
  for (int i = 0; i < 5; i++)
    sc += (0.3 * x[i] > (1.0 - m[i] / 250.00) * x[i] - 50.00 * w[i])
              ? (0.3 * x[i])
              : ((1.0 - m[i] / 250.00) * x[i] - 50.00 * w[i]);
  return printf("%d\n", (int)(sc + 100.0 * ac - 50.0 * wrong)) & 0;
}
