import java.util.*;

public class problema3 {
    public static class struct {
        int x, y;
        struct(int x, int y) {
            this.x = x;
            this.y = y;
        }
    }
    
    static int mod(int x, int y)
    {
        int result = x % y;
        if (result < 0)
        {
            result += y;
        }
        return result;
    }

    public static void main(String []args) {
        Scanner sc = new Scanner(System.in);
        double m[] = new double[5];
        double w[] = new double[5];
        double score[] = new double[5];
        double total = 0;
        score[0] = 500;  score[1] = 1000; score[2] = 1500; score[3] = 2000; score[4] = 2500;
        
        for(int i = 0; i < 5; i++)
            m[i] = sc.nextDouble();
        
        for(int i = 0; i < 5; i++)
            w[i] = sc.nextDouble();
        
        for(int i = 0; i < 5; i++) {
            total += Math.max( 0.3 * score[i], (1 - m[i] / 250) * score[i] - 50 * w[i]);
        }
        
        int hs = sc.nextInt();
        int hu = sc.nextInt();
        
        total += hs * 100 - hu * 50;
        System.out.println((int)total);
    }
}