#include <bits/stdc++.h>
using namespace std;
int x[] = {500, 1000, 1500, 2000, 2500};
int m[5], w[5], h, uh;
int s[5];
int ans;
void read() {
  for (int i = 0; i < 5; i++) scanf("%d", &m[i]);
  for (int i = 0; i < 5; i++) scanf("%d", &w[i]);
  scanf("%d %d", &h, &uh);
}
void build() {
  for (int i = 0; i < 5; i++) {
    s[i] = max(0.3 * x[i], (x[i] - m[i] * (x[i] / 250.0)) - 50.0 * w[i]);
  }
}
void sol() {
  for (int i = 0; i < 5; i++) ans += s[i];
  ans += h * 100 - uh * 50;
  printf("%d\n", ans);
}
int main() {
  read();
  build();
  sol();
  return 0;
}
