import java.util.*;
import java.io.*;

public class a334{
	public static void main(String args[]) throws Exception{
		//Scanner in = new Scanner(new File("a334.in"));
		Scanner in = new Scanner(System.in);
		int score = 0;
		int[] minute = new int[5];
		int[] wrong = new int[5];
		for(int k = 0;k<5;k++){
			minute[k] = in.nextInt();	
		}
		for(int j = 0;j<5;j++) {
			wrong[j] = in.nextInt();
		}
		for(int i = 0;i<5;i++){
			score+=Math.max((double)((i+1)*150),(1-(double)minute[i]/250)*(i+1)*500-50*wrong[i]);
		}
		score+=100*in.nextInt();
		score-=50*in.nextInt();
		System.out.println(score);
	}
}