
import java.util.*;
public class P1 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc=new Scanner(System.in);
        int[] m=new int[5];
        for(int i=0;i<5;i++)
            m[i]=sc.nextInt();
        int[] w=new int[5];
        for(int i=0;i<5;i++)
            w[i]=sc.nextInt();
        int hs=sc.nextInt();
        int hu=sc.nextInt();
        int ans=0;
        int x=0;
        for(int i=0;i<5;i++){
            x+=500;
            ans+=Math.max(0.3*x, x-x*m[i]/250-50*w[i]);
        }
        ans+=100*hs;
        ans-=50*hu;
        System.out.println(ans);
    }

}
