#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 12, inf = 1e9;
long double m[5], w[5], hs, hu, ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  cin >> hs >> hu;
  for (int i = 0; i < 5; i++)
    ans += max(0.300000 * ((long double)i * 500 + 500),
               (1 - (m[i] / (long double)250)) * (long double)(i + 1) * 500 -
                   50 * w[i]);
  cout << ans + hs * 100 - hu * 50 << endl;
  return 0;
}
