#include <bits/stdc++.h>
using namespace std;
const long long MXN = 1e2 + 1;
const long long INF = 1e9 + 7;
int m1, m2, m3, m4, m5;
int w1, w2, w3, w4, w5;
int h1, h2;
int x1, x2, x3, x4, x5;
int main() {
  cin >> m1 >> m2 >> m3 >> m4 >> m5;
  cin >> w1 >> w2 >> w3 >> w4 >> w5;
  cin >> h1 >> h2;
  x1 = max(150, (500 - m1 * 500 / 250) - w1 * 50);
  x2 = max(300, (1000 - m2 * 1000 / 250) - w2 * 50);
  x3 = max(450, (1500 - m3 * 1500 / 250) - w3 * 50);
  x4 = max(600, (2000 - m4 * 2000 / 250) - w4 * 50);
  x5 = max(750, (2500 - m5 * 2500 / 250) - w5 * 50);
  cout << (x1 + x2 + x3 + x4 + x5) + (h1 * 100 - h2 * 50);
  return 0;
}
