import java.util.*;
public class Main {
	public static void main(String [] args) {
		int []score = {500, 1000, 1500, 2000, 2500};
		int []m = new int[5];
		int []w = new int[5];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<5; i++)
			m[i] = sc.nextInt();
		for(int i=0; i<5; i++) 
			w[i] = sc.nextInt();
		int hs = sc.nextInt(), hu = sc.nextInt();
		int result = 0;
		for(int i=0; i<5; i++) {
			result += Math.max(3*score[i]/10, (250-m[i])*score[i]/250-50*w[i]);
		}
		result += hs*100;
		result -= hu*50;
		System.out.println(result);
	}
}