import java.util.*;

public class uncowed {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		double[] time = new double[5];
		double[] subs = new double[5];
		int[] hacks = new int[2];
		for (int i = 0; i < 5; i++) {
			time[i] = scan.nextInt();
		}
		for (int i = 0; i < 5; i++) {
			subs[i] = scan.nextInt();
		}
		for (int i = 0; i < 2; i++) {
			hacks[i] = scan.nextInt();
		}
		int total = 0;
		int[] points = {500, 1000, 1500, 2000, 2500};
		for (int i = 0; i < 5; i++) {
			total+=Math.max(0.3*points[i], (1-(time[i]/250))*points[i]-50*subs[i]);
		}
		total+=hacks[0]*100;
		total-=hacks[1]*50;
		System.out.print((int) total);
	}
}
