#include <bits/stdc++.h>
using namespace std;
int main() {
  int m[5], w[5];
  for (int i = 0; i < 5; i++) cin >> m[i];
  for (int i = 0; i < 5; i++) cin >> w[i];
  int sh, uh;
  cin >> sh >> uh;
  long double scr = 0;
  int val = 500;
  for (int i = 0; i < 5; i++) {
    scr += max((long double)0.3 * val,
               (long double)(1 - (long double)m[i] / 250) * val - 50 * w[i]);
    val += 500;
  }
  scr += 100 * sh;
  scr -= 50 * uh;
  cout << scr << endl;
  return 0;
}
