import java.util.Scanner;
public class UncowedForces {
	public static void main(String args[]){
		Scanner s= new Scanner(System.in);
		int m[]=new int[6];
		int w[]=new int[6];
		int p[]=new int[6];
		p[1]=500;
		p[2]=1000;
		p[3]=1500;
		p[4]=2000;
		p[5]=2500;
		for(int i=1;i<6;i++){
			m[i]=s.nextInt();
		}
		for(int i=1;i<6;i++){
			w[i]=s.nextInt();
		}
		double total=0;
		for(int i=1;i<6;i++){
			total+=Math.max(0.3*p[i], ((1.0-(m[i]/250.0))*p[i])-50.0*w[i]);
		}
		
		int n=s.nextInt();
		int x=s.nextInt();
		total= total+ 100.0*n-50.0*x;
		int t=(int)total;
		System.out.println(t);
	}
}
