import java.util.Scanner;
public class A604 {
	public static void main(String []args){
		int i,r,h,f;
		int m[]=new int[5];
		int w[]=new int[5];
		Scanner in= new Scanner(System.in);
		for(i=r=0;i<5;i++){
			m[i]=in.nextInt();
		}
		for(i=0;i<5;i++){
			w[i]=in.nextInt();
		}
		h=in.nextInt();
		f=in.nextInt();
		for(i=1;i<=5;i++){
	        r+=max(i*50*3,(250-m[i-1])*2*i-50*w[i-1]);
	    }
		r+=h*100-f*50;
		System.out.print(r);
		in.close();
	}
	public static int max(int x,int y){
	    if(x>y){
	        return x;
	    }else{
	        return y;
	    }
	}
}
