import java.util.Scanner;

public class UncowedForces
{
    public static void main(String[] args)
    {
        Scanner z=new Scanner(System.in);
        int m[]=new int[5];
        int w[]=new int[5];
        int x=0;
        for(int i=0;i<5;i++){
            m[i]=z.nextInt();
            x+=(250-m[i])*((500*(i+1))/250);
        }
        int s=0;
        for(int i=0;i<5;i++){
            w[i]=z.nextInt();
            s+=w[i];
        }
        s=50*s;
        int sh=z.nextInt();
        int ush=z.nextInt();
        System.out.println(x-s+(100*sh)-(50*ush));
    }
}
