#include <bits/stdc++.h>
using namespace std;
const long long MX = -1e9;
const long long MN = 2e5 + 1;
long long mx = MX, mn = MN;
long long n, a, b, x, cnt;
char ca, cb;
long long ar[5] = {500, 1000, 1500, 2000, 2500};
vector<long long> v, c;
int main() {
  for (long long i = 0; i < 5; i++) {
    cin >> x;
    v.push_back(x);
  }
  for (long long i = 0; i < 5; i++) {
    cin >> x;
    c.push_back(x);
  }
  for (long long i = 0; i < 5; i++) {
    a = ar[i] - ar[i] * v[i] / 250 - 50 * c[i];
    b = ar[i] / 10 * 3;
    cnt += max(a, b);
  }
  cin >> a >> b;
  cnt += 100 * a - 50 * b;
  cout << cnt;
}
