import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		double[] quest = new double[5];
		double[] scores = {500,1000,1500,2000,2500};
		Scanner in = new Scanner(System.in);
		
		for (int i = 0; i < quest.length; i++) {
			quest[i] = in.nextInt();
		}
		double score = 0;
		for (int i = 0; i < quest.length; i++) {
			score += Math.max(0.3*scores[i], (1 - quest[i]/250)*scores[i] - 50*in.nextInt());
		}
		
		score += 100*in.nextInt();
		score -= 50*in.nextInt();
		
		System.out.println((int) score);
		
	}
}