import java.util.Scanner;

/**
 * Created by Dewan on 12/1/2015.
 */
public class A334 {
    public static void main(String args[]){
        Scanner obj=new Scanner(System.in);
        int[] m = new int[5];
        int[] w =new int[5];
        int hs,hu,max=0;
        int x[]= {500,1000,1500,2000,2500};
        int a,res,sol=0;

        float d;
        for(int i=0;i<5;i++)
            m[i]= obj.nextInt();
        for(int i=0;i<5;i++)
            w[i]= obj.nextInt();
        hs = obj.nextInt();
        hu = obj.nextInt();
        for(int i=0;i<5;i++)
        {

            a= (int) (0.3*x[i]);
           d = (1-((float)m[i])/250)*x[i]- 50*w[i];

            if(a>d)
                res=a;
            else
                res= (int) d;

            sol = sol+res;

        }
        sol = sol +(100*hs);
        sol = sol-(50*hu);
        System.out.println((int)sol);
    }
}
