import java.util.Scanner; // импортируем класс

public class App{
    public static void main(String[] args){
        new App();
    }
    
    double max(double a, double b){
        return a > b ? a : b;
    }
    
    double bals(double x, double m, double w){
        return max(0.3 * x, (1 - m / 250) * x - 50 * w);
    }
    
    App(){
        Scanner sc = new Scanner(System.in);
        int m[] = new int[5];
        int w[] = new int[5];
        int h[] = new int[2];//46475 10.10  
        int x[] = new int[]{500, 1000, 1500, 2000, 2500};
        double sum = 0;
        
        for(int i = 0; i < 5; i ++)
            m[i] = sc.nextInt();
        for(int i = 0; i < 5; i ++)
            w[i] = sc.nextInt();
        for(int i = 0; i < 2; i++)
            h[i] = sc.nextInt();
        
       for(int i = 0; i < 5; i++)
            sum += bals(x[i], m[i], w[i]);
            
       sum += h[0] * 100 - h[1] * 50;
       
       System.out.println((int)sum);
    }
}