#include <bits/stdc++.h>
using namespace std;
int s[6], w[6];
int k[6] = {0, 2, 4, 6, 8, 10};
int main() {
  int ans = 0, l;
  for (int i = 1; i <= 5; ++i) {
    scanf("%d", &l);
    ans += (250 - l) * k[i];
  }
  int wa = 0;
  for (int i = 1; i <= 5; ++i) {
    scanf("%d", &l);
    wa += l;
  }
  ans -= wa * 50;
  ans = max(2250, ans);
  int a, b;
  scanf("%d%d", &a, &b);
  printf("%d\n", ans + 100 * a - 50 * b);
  return 0;
}
