#include <bits/stdc++.h>
using namespace std;
const int MaxN = 10;
long long t, sum, x, ans[MaxN + 5], n, m[MaxN + 5], w[MaxN + 5], hs, hu;
int main() {
  for (int i = 1; i <= 5; i++) scanf("%I64d", &m[i]);
  for (int i = 1; i <= 5; i++) scanf("%I64d", &w[i]);
  scanf("%I64d %I64d", &hs, &hu);
  for (int i = 1; i <= 5; i++) {
    x = 500 * i;
    t = 2 * i;
    ans[i] = max((250 - m[i]) * t - (50 * w[i]), x / 10 * 3);
  }
  for (int i = 1; i <= 5; i++) sum += ans[i];
  sum = sum + 100 * hs - 50 * hu;
  printf("%I64d\n", sum);
}
