#include <bits/stdc++.h>
using namespace std;
inline bool EQ(double a, double b) { return fabs(a - b) < 1e-9; }
int main() {
  int m1, m2, m3, m4, m5;
  scanf("%d", &m1);
  scanf("%d", &m2);
  scanf("%d", &m3);
  scanf("%d", &m4);
  scanf("%d", &m5);
  int w1, w2, w3, w4, w5;
  scanf("%d", &w1);
  scanf("%d", &w2);
  scanf("%d", &w3);
  scanf("%d", &w4);
  scanf("%d", &w5);
  int h1, h2;
  scanf("%d", &h1);
  scanf("%d", &h2);
  double ans1, ans2, ans3, ans4, ans5;
  ans1 = max((double)0.3 * 500, double((1 - m1 * 1.0 / 250) * 500 - 50 * w1));
  ans2 = max((double)0.3 * 1000, double((1 - m2 * 1.0 / 250) * 1000 - 50 * w2));
  ans3 = max((double)0.3 * 1500, double((1 - m3 * 1.0 / 250) * 1500 - 50 * w3));
  ans4 = max((double)0.3 * 2000, double((1 - m4 * 1.0 / 250) * 2000 - 50 * w4));
  ans5 = max((double)0.3 * 2500, double((1 - m5 * 1.0 / 250) * 2500 - 50 * w5));
  long long fin = ans1 + ans2 + ans3 + ans4 + ans5;
  fin += h1 * 100 - h2 * 50;
  printf("%lld\n", fin);
  return 0;
}
