#include <bits/stdc++.h>
using namespace std;
const int N = 1000001, md = 1e9 + 7;
using namespace std;
int m[6], w[6], ans, h, u;
int main() {
  for (int i = 1; i <= 5; i++) cin >> m[i];
  for (int i = 1; i <= 5; i++) cin >> w[i];
  cin >> h >> u;
  for (int i = 1; i <= 5; i++)
    ans += max(i * 150, i * 500 - i * 2 * m[i] - 50 * w[i]);
  cout << ans + 100 * h - 50 * u;
}
