#include <bits/stdc++.h>
using namespace std;
int main() {
  double m[5], w[5];
  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;
  double ans = 0, x = 500;
  for (int i = 0; i < 5; i++) {
    ans += max((0.3 * x), ((1 - (m[i] / 250)) * x) - (50 * w[i]));
    x += 500;
  }
  cout << ans + 100 * hs - (50 * hu) << endl;
}
