
import java.util.Scanner;

public class Kevin {

    public static void main(String[] args) 
    {
        Scanner input=new Scanner(System.in);
        double a[]=new double[5];
        double b[]=new double[5];
        double c[]={500,1000,1500,2000,2500};
        for(int i=0 ; i<5 ; i++)
            a[i]=input.nextDouble();

        for(int i=0 ; i<5 ; i++)
            b[i]=input.nextDouble();
        double n=input.nextDouble();
        double k=input.nextDouble();
        double sum=0,x=0,y=0;
        for(int i=0 ; i<5 ; i++)
        {
            x= (0.3*c[i]);
            y=(1-(a[i]/250))*c[i]-50*b[i];
            sum+=Math.max(x, y);
        }
        sum=sum+100*n-50*k;
        System.out.println((int)sum);
    }
    
}
