
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] m = new int[5];
        int w[] = new int[5];
        int h[] = new int[2];
        int s[] = {500, 1000, 1500, 2000,2500};
        for (int i = 0; i < 5; i++) {
            m[i] = in.nextInt();

        }
        for (int i = 0; i < 5; i++) {
            w[i] = in.nextInt();

        }
        for (int i = 0; i < 2; i++) {
            h[i] = in.nextInt();

        }
        int sum = 0;
        for (int i = 0; i < 5; i++) {
            sum += Math.max(3 * s[i]/10,s[i]-(s[i]*m[i]/250)  -50 * w[i]);
        }
        sum += (100 * h[0]) - (50 * h[1]);
        System.out.println(sum);
    }
}
