import java.util.Scanner;

public class SastaCoder {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int[] m = new int[5];
        int[] w = new int[5];

        for(int i=0;i<5;i++) m[i] = scan.nextInt();
        for(int i=0;i<5;i++) w[i] = scan.nextInt();

        int sum = 0;
        for(int i=0;i<5;i++){
            sum += Math.max(150*(i+1),(250-m[i])*2*(i+1)-50*w[i]);
        }
        sum += 100*scan.nextInt() - 50*scan.nextInt();

        System.out.println(sum);
    }
}
