#include <bits/stdc++.h>
using namespace std;
int m[6], w[6], suc, uns;
int main() {
  for (int i = 1; i <= 5; i++) cin >> m[i];
  for (int i = 1; i <= 5; i++) cin >> w[i];
  cin >> suc >> uns;
  int score = 0;
  for (int i = 1; i <= 5; i++) {
    int x = i * 500;
    score += max(x / 10 * 3, x - 50 * w[i] - 2 * i * m[i]);
  }
  score += 100 * suc - 50 * uns;
  cout << score << endl;
  return 0;
}
