#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int m[5], w[5], succ, unsuc, ans = 0;
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> succ >> unsuc;
  for (long long int i = 0; i < 5; i++) {
    ans += max(30 * 5 * (i + 1),
               ((500 * (i + 1) - m[i] * 2 * (i + 1) - 50 * w[i])));
  }
  ans += (100 * succ - 50 * unsuc);
  cout << ans;
}
