import java.util.*;
public class Test{
    
    
    
    
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int s[]={500,1000,1500,2000,2500};
        int m[]=new int[5];
        int w[]=new int[5];
        for(int i=0;i<5;i++)
            m[i]=sc.nextInt();
        for(int i=0;i<5;i++)
            w[i]=sc.nextInt();
        int sh=sc.nextInt();
        int wh=sc.nextInt();
        double ans=0;
        for(int i=0;i<5;i++)
        {
            ans+=Math.max(3 * s[i]/10, ((250 - (m[i])) * (s[i])/250) - 50 * w[i]);
        }
        ans+=sh*100-wh*50;
        System.out.println((int)ans);
    }
}