import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class a {

	public static void main(String[] args) throws IOException {
		//BufferedReader input = new BufferedReader(new FileReader("input.txt"));  
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		int[] p = {500,1000,1500,2000,2500};
		int[] m = new int[5];
		int[] w = new int[5];
		int[] h = new int[2];
		double[] save=  new double[5];
		String s[] = input.readLine().split(" ");		
		for (int i = 0; i < 5; i++) {
			m[i]=Integer.parseInt(s[i]);
		}
		s = input.readLine().split(" ");
		for (int i = 0; i < 5; i++) {
			w[i]=Integer.parseInt(s[i]);
		}		
		s = input.readLine().split(" ");
		for (int i = 0; i < 2; i++) {
			h[i]=Integer.parseInt(s[i]);
		}			
		
		//int score = 0;
		float score = 0;
		for (int i = 0; i < m.length; i++) {
			save[i] = max(.3*p[i], (1-((double)m[i]/250) )*p[i] - 50*w[i]);
			score+=save[i];
			//System.out.print(save[i]+" ");
		}
	    //System.out.println("");
	    // System.out.println(((double)m[0]/250));
		score += 100*h[0] - 50*h[1];
		System.out.println((int)score);
		//int num = 10;


	}
	public static double max(double a, double b){
		if(a>b)
			return a;
		else 
			return b;
	}

}