#include <bits/stdc++.h>
using namespace std;
int s[] = {0, 500, 1000, 1500, 2000, 2500};
int m[10];
int w[10];
int h[3];
int main() {
  freopen("A.in", "r", stdin);
  for (int i = (1), _en = (5); i <= _en; ++i) scanf("%d", m + i);
  for (int i = (1), _en = (5); i <= _en; ++i) scanf("%d", w + i);
  for (int i = (1), _en = (2); i <= _en; ++i) scanf("%d", h + i);
  int ans = 0;
  for (int i = (1), _en = (5); i <= _en; ++i) {
    ans += max(s[i] / 10 * 3, (250 - m[i]) * s[i] / 250 - 50 * w[i]);
  }
  ans += 100 * h[1] - 50 * h[2];
  cout << ans << endl;
  return 0;
}
