import java.util.Scanner;

public class _0769UncowedForces {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] submit = new int[5];
		for(int i=0;i<5;i++) {
			submit[i]=sc.nextInt();
		}
		int[] wrong = new int[5];
		for(int i=0;i<5;i++) {
			wrong[i]=sc.nextInt();
		}
		int success=sc.nextInt();
		int unsuccess=sc.nextInt();
		int totalScore=0;
		int lol=500;
		for(int i=0;i<5;i++) {
			int score=0;
			int maxScore=lol*(i+1);
			score=(int)Math.max((0.3*maxScore),((250-submit[i])*maxScore)/250-50*wrong[i]);
			totalScore+=score;
			}
		totalScore+=100*success;
		totalScore-=50*unsuccess;
		System.out.println(totalScore);
	}

}
