#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 m1, m2, m3, m4, m5, h1, h2, w1, w2, w3, w4, w5, an1, an2, an3, an4,
      an5, ans;
  long long res = 0;
  cin >> m1 >> m2 >> m3 >> m4 >> m5;
  cin >> w1 >> w2 >> w3 >> w4 >> w5;
  cin >> h1 >> h2;
  an1 = max(150ll, (long long)((1 - m1 / 250) * 500 - 50 * w1));
  an2 = max(300ll, (long long)((1 - m2 / 250) * 1000 - 50 * w2));
  an3 = max(500ll, (long long)((1 - m3 / 250) * 1500 - 50 * w3));
  an4 = max(600ll, (long long)((1 - m4 / 250) * 2000 - 50 * w4));
  an5 = max(750ll, (long long)((1 - m5 / 250) * 2500 - 50 * w5));
  ans = an1 + an2 + an3 + an4 + an5 + h1 * 100 - h2 * 50;
  res = ans;
  cout << res << endl;
  return 0;
}
