#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
template <class T>
bool scanff(T &ret) {
  char c;
  int sgn;
  T bit = 0.1;
  if (c = getchar(), c == EOF) return 0;
  while (c != '-' && c != '.' && (c < '0' || c > '9')) c = getchar();
  sgn = (c == '-') ? -1 : 1;
  ret = (c == '-') ? 0 : (c - '0');
  while (c = getchar(), c >= '0' && c <= '9') ret = ret * 10 + (c - '0');
  if (c == ' ' || c == '\n') {
    ret *= sgn;
    return 1;
  }
  while (c = getchar(), c >= '0' && c <= '9') ret += (c - '0') * bit, bit /= 10;
  ret *= sgn;
  return 1;
}
using namespace std;
int main() {
  double m[5];
  double w[5];
  double v[20] = {0, 500.0, 1000.0, 1500.0, 2000.0, 2500.0};
  int x, y;
  for (int i = int(1); i <= int(5); i++) scanff(m[i]);
  for (int i = int(1); i <= int(5); i++) scanff(w[i]);
  scanff(x);
  scanff(y);
  double ans = 0;
  for (int i = int(1); i <= int(5); i++) {
    ans += max(0.3 * v[i], (1.0 - m[i] / 250.0) * v[i] - 50 * w[i]);
  }
  ans += x * 100.0;
  ans -= y * 100.0;
  printf("%.f\n", floor(ans));
}
