#include <bits/stdc++.h>
using namespace std;
const int INF = numeric_limits<int>::max();
const long long LLINF = numeric_limits<long long>::max();
const unsigned long long ULLINF = numeric_limits<unsigned long long>::max();
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int m[5], w[5], hs, hu;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int j = 0; j < 5; j++) cin >> w[j];
  cin >> hs >> hu;
  int ans = 0;
  int pts[5] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < 5; i++)
    ans += max(3 * pts[i] / 10, (250 - m[i]) * pts[i] / 250 - 50 * w[i]);
  cout << ans + 100 * hs - 50 * hu;
  return 0;
}
