import java.util.Scanner;

public class JavaApplication96 {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        int m[] = new int[5];
        int w[] = new int[5];
        int x[] = {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();
        }

        int hs = in.nextInt();
        int hf = in.nextInt();
        double result = 0;
        int sum = 0;

        for (int i = 0; i < 5; i++) {
              System.out.println("m[i]:" + m[i] + " x[i]:" + x[i] + " w[i]:" + w[i]);
            result = Math.round((1 - (double) m[i] / 250) * x[i] - 50 * w[i]);
            if (x[i] * 0.30 > result) {
                result = (int) (x[i] * 0.30);
            }
                System.out.println("result:" + result);
            sum += result;
        }

        sum = sum + hs * 100 - hf * 50;

        System.out.println(sum);

    }

}
