#include <bits/stdc++.h>
using namespace std;
struct point {
  long long x, y;
  point(long long a, long long b) {
    x = a;
    y = b;
  }
};
point operator-(point a, point b) { return point(a.x - b.x, a.y - b.y); }
long double distance(point a, point b) {
  return (sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y)));
}
long long vect(point a, point b) { return ((a.x - b.y) * (a.y - b.x)); }
long long scal(point a, point b) { return ((a.x + b.x) * (a.y + b.y)); }
int main() {
  double a[5], b[5], c[5] = {500, 1000, 1500, 2000, 2500}, ans = 0, h1, h2;
  long long res = 0;
  for (int i = 0; i < 5; i++) cin >> a[i];
  for (int i = 0; i < 5; i++) cin >> b[i];
  cin >> h1 >> h2;
  for (int i = 0; i < 5; i++) {
    long double k = c[i] * 0.3;
    long double k2 = (1 - a[i] / 250) * c[i] - 50 * b[i];
    ans += max(k, k2);
  }
  ans += h1 * (double)100 - h2 * (double)50;
  res = ans;
  cout << res << endl;
  return 0;
}
