#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
const int prime = 999983;
const int prime1 = 10000007;
const int INF = 0x3f3f3f3f;
const int INFF = 1e9;
const double pi = 3.141592653589793;
const double inf = 1e18;
const double eps = 1e-8;
const int mod = 9937;
inline int read_int() {
  int ret = 0;
  char tmp;
  while (!isdigit(tmp = getchar()))
    ;
  do {
    ret = (ret << 3) + (ret << 1) + tmp - '0';
  } while (isdigit(tmp = getchar()));
  return ret;
}
int a[10], b[10];
int main() {
  int ans = 0;
  for (int i = 0; i < 5; i++) cin >> a[i];
  for (int j = 0; j < 5; j++) cin >> b[j];
  for (int i = 0; i < 5; i++) {
    ans +=
        max(75 * 500 * (i + 1), ((250 - a[i]) * (i + 1) * 500) - 12500 * b[i]);
  }
  ans /= 250;
  int x, y;
  cin >> x >> y;
  ans = ans + x * 100 - y * 50;
  cout << ans << endl;
  return 0;
}
