import java.io.*;

public class CF334A {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int[] max = new int[] { 500, 1000, 1500, 2000, 2500 };
        int[] m = new int[5];
        int[] w = new int[5];
        int sHack;
        int uHack;
        String[] line = in.readLine().split(" ");
        for(int i = 0; i < 5; i++) {
            m[i] = Integer.parseInt(line[i]);
        }
        line = in.readLine().split(" ");
        for(int i = 0; i < 5; i++) {
            w[i] = Integer.parseInt(line[i]);
        }
        line = in.readLine().split(" ");
        sHack = Integer.parseInt(line[0]);
        uHack = Integer.parseInt(line[1]);

        double sum = 0;
        for(int i = 0; i < 5; i++) {
            sum += Math.max(0.3d * max[i], ((1 - (m[i]/250.0d)) * max[i]) - (50 * w[i]));
        }
        sum += 100 * sHack;
        sum -= 50 * uHack;
        System.out.println((int)sum);
    }
}
