#include <bits/stdc++.h>
using namespace std;
float f(int x, int m, int w) {
  float t1 = 0.3 * x;
  float t2 = (1 - (0.004 * m)) * x - 50 * w;
  if (t1 > t2) return t1;
  return t2;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int TESTS = 1;
  while (TESTS--) {
    int m1, m2, m3, m4, m5;
    cin >> m1 >> m2 >> m3 >> m4 >> m5;
    int w1, w2, w3, w4, w5;
    cin >> w1 >> w2 >> w3 >> w4 >> w5;
    int hs, hu;
    cin >> hs >> hu;
    float ans = 0;
    ans += f(500, m1, w1);
    ans += +f(1000, m2, w2);
    ans += +f(1500, m3, w3);
    ans += +f(2000, m4, w4);
    ans += +f(2500, m5, w5);
    ans += 100 * hs;
    ans -= 50 * hu;
    int fuck = ans;
    cout << fuck;
  }
  return 0;
}
