#include <bits/stdc++.h>
#pragma comment(linker, "/Stack:256000000")
using namespace std;
const int INF = (int)1e9;
const double EPS = 1e-9;
int solve();
int gen();
bool check();
int main() {
  solve();
  return 0;
}
int solve() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int m[5], w[5], h1, h2;
  for (int i = 0; i < 5; ++i) cin >> m[i];
  for (int i = 0; i < 5; ++i) cin >> w[i];
  cin >> h1 >> h2;
  int ans = 0;
  int b[5] = {500, 1000, 1500, 2000, 2500};
  for (int i = 0; i < 5; ++i) {
    ans += max((int)(0.3 * b[i]), b[i] * (250 - m[i]) / 250 - 50 * w[i]);
  }
  ans += 100 * h1;
  ans -= 50 * h2;
  cout << ans;
  return 0;
}
