p = [500, 1000, 1500, 2000, 2500];
sm = readline().split(' ');
m = []
for(var i = 0;i<5;i++) {
	m[i] = parseFloat(sm[i]);
}
sw = readline().split(' ');
w = []
for(var i=0;i<5;i++) {
	w[i] = parseFloat(sw[i]);
}
sh = readline().split(' ');
h = []
for(var i=0;i<2;i++) {
	h[i] = parseFloat(sh[i]);
}
var ans = 0.0;
for(var i = 0; i < 5; i ++) {
	ans += Math.max(0.3*p[i], (1.0-m[i]/250.0)*p[i]-50.0*w[i]);
}
ans += 100.0 * h[0] - 50.0 * h[1];
ans = Math.floor(ans);
print(ans);
