
import java.util.Scanner;

public class q1
{

    public static void main(String args[])
    {
        Scanner s=new Scanner(System.in);
        double a[]=new double[5];
        double w[]=new double[5];
        int sc,u;
        for(int i=0;i<5;i++)
            a[i]=s.nextInt();
        for(int i=0;i<5;i++)
            w[i]=s.nextInt();
        
        sc=s.nextInt();
        u=s.nextInt();
        
        double ans=0;
        for(int i=0;i<5;i++)
        {
            double max=(i+1)*500;
            ans+=Math.max(0.3*max,(1-a[i]/250)*max-50*w[i]);
            //System.out.println(ans);
        }
        ans+=sc*100;
        ans-=u*50;
        int ans1=(int)ans;
        System.out.println(ans1);
        
    }
}
