import java.util.Scanner;


public class A {

  
    public static void main(String[] args) {
       Scanner input = new Scanner(System.in);
       double sum=0 , s,u ;
       double x[]={500,1000,1500,2000,2500};
       double[]time= new double[5];
       double [] wa =new double[5];
        for (int i = 0; i < 5; i++) {
            time[i]=input.nextInt();
           // System.out.println("time of "+i+"=  "+time[i]);
        }
        for (int i = 0; i < 5; i++) {
            wa[i]=input.nextInt();
           // System.out.println("wa of  "+i+"=  "+wa[i]);
        }
       s= input.nextInt();
        //System.out.println("s="+s);
       u= input.nextInt();
        //System.out.println("u="+u);
        for (int i = 0; i < 5; i++) {
            sum+=Math.max(0.3*x[i], ((1-(time[i]/250))*x[i])-(wa[i]*50));
        }
        sum+=s*100;
        sum-=u*50;
        System.out.println((int)sum);
    }
    
}