import java.io.IOException;
import java.time.LocalTime;
import java.util.*;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		double[] m=new double[5];
		double[] w=new double[5];
		double[] x= {500,1000,1500,2000,2500};
		
		for(int i=0;i<5;i++) {
			m[i]=sc.nextInt();
		}
		
		for(int i=0;i<5;i++) {
			w[i]=sc.nextInt();
		}
		
		int h=sc.nextInt();
		int f=sc.nextInt();
		
		double tot=0;
		
		
		for(int i=0;i<5;i++) {
			tot+=Math.max((0.3*x[i]), (((1.0-(m[i]/250.0))*x[i])-(50.0*w[i])));
		}
		
		tot+=(100*h);
		tot-=(50*f);
		
		System.out.println((int)tot);
		
		
		
	
	}
	
}
