import java.util.*;
public class hjh{
    public static void main(String[] args){
        Scanner in=new Scanner(System.in);
        int ar[],an[],ax[],a=0,b=0;
        ax=new int[]{500,1000,1500,2000,2500};
        double ans=0;
        ar=new int[5];
        an=new int[5];
        for (int i=0; i<5; i++){
            ar[i]=in.nextInt();
        }
        for (int i=0; i<5; i++){
            an[i]=in.nextInt();
        }
        a=in.nextInt();
        b=in.nextInt();
        for (int i=0; i<5; i++){
            ans=ans+Math.max(0.3*ax[i],(1-ar[i]/250)*ax[i]-50*an[i]);
        }
        ans=ans+(a*100);
        ans=ans-(b*50);
        System.out.println(ans);
    }
}