#include <bits/stdc++.h>
using namespace std;
const int mod = 10007;
const double pi = acos(-1);
int m[10], w[10];
int res[5] = {2, 4, 6, 8, 10};
int main() {
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  int hs, hu;
  cin >> hs >> hu;
  int ans = 0;
  for (int i = 0; i < 5; i++) {
    int cnt = int(75 * res[i]);
    int temp = res[i] * 250;
    int l1 = m[i] * res[i];
    int l2 = 50 * w[i];
    int r = temp - l1 - l2;
    ans += max(cnt, r);
  }
  ans += (hs * 100 - hu * 50);
  cout << ans << endl;
}
