import java.util.*;
import java.math.*;
import java.io.*;
public class Ltower
{
	public static void main(String args [])	throws IOException
	{
		new Ltower().run();
	}
	public PrintWriter pw;
	public void run()	throws IOException
	{		
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		pw=new PrintWriter(System.out, true);
		
		String s[]=in.readLine().split(" ");
		int m[] = new int[5]; 
		int i = 0;
		while(i<5){
			m[i] = Integer.parseInt(s[i]);
			i++;
		}
		
		s=in.readLine().split(" ");
		int w[] = new int[5]; 
		i = 0;
		while(i<5){
			w[i] = Integer.parseInt(s[i]);
			i++;
		}
		
		s=in.readLine().split(" ");
		int h[] = new int[2]; 
		i = 0;
		while(i<2){
			h[i] = Integer.parseInt(s[i]);
			i++;
		}
		
		long sum = Math.max(150, (500-2*m[0])-50*w[0])+Math.max(300, (1000-4*m[1])-50*w[1])+Math.max(450, (1500-6*m[2])-50*w[2])+Math.max(600, (2000-8*m[3])-50*w[3])+
				Math.max(750, (2500-10*m[4])-50*w[4]) + (100*h[0]-(50*h[1]));
		pw.println(sum);
	}
	public void mk(int arr[][], int ind,int m)
	{
		for(int i=0; i<m; i++)
		{
				arr[i][ind]=0;
		}
		
	}
} 