import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		int[] points = {500, 1000, 1500, 2000, 2500};
		int[] minutes = new int [5];
		int[] wrongs = new int [5];
		
		for (int i = 0; i < 5; i++)
			minutes[i] = input.nextInt();
		
		for (int i = 0; i < 5; i++)
			wrongs[i] = input.nextInt();
		
		int hs = input.nextInt();
		int hf = input.nextInt();
		
		int sum = 0;
		for (int i = 0; i < points.length; i++)
		{
			double temp = (1 - (minutes[i] / 250.0));
			double score = ((temp * points[i] ) - (50 * wrongs[i]));
			sum += Math.max(score, 0.3 * points[i]);
		}
		
		sum += (hs * 100) - (hf * 50);
		System.out.println(sum);
	}

}