
import java.util.Scanner;


public class Forces {

    public static void main(String[] args) 
    {
        Scanner input=new Scanner(System.in);
        int[] m=new int[5];
        int[] w=new int[5];
        for(int i=0;i<5;i++)
            m[i]=input.nextInt();
        for(int i=0;i<5;i++)
        w[i]=input.nextInt();  
        int h1=input.nextInt();
        int h2=input.nextInt();
        double sum=0,result=0;
        int[] x={2,4,6,8,10};
        for(int i=0;i<5;i++)
        {
            
            sum+=((250-m[i])*x[i])-(50*w[i]); 
          
        }
        for(int i=0;i<5;i++)
        {
            result+=0.3*x[i];
        }
        int H=h1*100-h2*50;
        int max=(int) Math.max(result, sum);
        System.out.println(max+H);
        
    }
    
}
