import java.util.Scanner;

public class A 
{

    public static void main(String[] args) 
    {
        Scanner sc = new Scanner(System.in);
        int [] x = {500,1000,1500,2000,2500};
        double [] m = new double [5];
        int [] w = new int [5];
        
        int h1;
        int h2;
        for (int i=0;i<5;i++)
            m[i] = sc.nextInt();
        
        for (int i=0;i<5;i++)
            w[i] = sc.nextInt();
        h1=sc.nextInt();
        h2=sc.nextInt();
        
        int res=0;
        for (int i=0;i<5;i++)
        {
            
            if ((int) ((1-m[i]/250)*x[i]-50*w[i]) < 0.3*x[i])
            {
                res = (int) res + (int) (0.3*x[i]);
            }
            else
            {
                res = (int) (res + (1-m[i]/250)*x[i]-50*w[i]);
            }
        }
        res = res + 100*h1-50*h2;
        
        System.out.print(res);
    }
}