import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] m = new int[5];
        int[] w = new int[5];
        int[] h = new int[2];
        int score = 0;
        int i;
        for (i = 0; i < 5; i++) {
            m[i] = scanner.nextInt();
        } for (i = 0; i < 5; i++) {
            w[i] = scanner.nextInt();
        } for (i = 0; i < 2; i++) {
            h[i] = scanner.nextInt();
        } for (i = 0; i < 5; i++) {
            score += (i * 500 + 500) * (250 - m[i]) / 250 - 50 * w[i];
        } score += 100 * h[0] - 50 * h[1];
        System.out.println(score);
    }
}