import java.util.Scanner;

/**
 * Created by hamed on 12/1/2015.
 */
public class Q1 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int time[] = new int[5];
        int point[] = {500, 1000, 1500, 2000 ,2500};
        int wrong[] = new int[5];
        for (int i = 0; i < 5; i++){
            time[i] = s.nextInt();
        }

        for(int i = 0; i < 5; i++){
            wrong[i] = s.nextInt();
        }
        int success = s.nextInt();
        int unsuccess = s.nextInt();

        double sum = 0;
        for(int i= 0; i < 5; i ++){
            sum += Math.max(.3 * (double)point[i], (1.0 - ((double)time[i] / 250.0)) * (double)point[i] - 50.0 * (double)wrong[i]);
        }

        sum += success * 100.0;
        sum -= unsuccess * 50.0;

        System.out.println((int)sum);
    }
}
