import java.util.Scanner;

public class Main {
    private static Scanner scanner = new Scanner(System.in);
    private static int OO = (int) 1e6 + 9;
    private static int[] dx = {0, 1, -1, 1};
    private static int[] dy = {1, 0, -1, 1};

    public static void main(String[] args) {
        int[] se = {500, 1000, 1500, 2000, 2500}, m = new int[5], w = new int[5];
        for (int i = 0; i < 5; i++) {
            m[i] = 250 - scanner.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            w[i] = scanner.nextInt();
        }
        int hs = scanner.nextInt(), hu = scanner.nextInt(), r = 0;
        for (int i = 0; i < 5; i++) {
            r += Math.max((.3 * se[i]), ((se[i] * m[i] / 250) - (50 * w[i])));
        }
        r += (100 * hs);
        r -= (50 * hu);
        System.out.println(r);
    }
}
