import java.util.Scanner;

/**
 * Created by yuu on 9/4/17.
 */
public class Problem604A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] time = new int[5];
        int[] wrong = new int[5];
        int score = 0;
        for (int i = 0; i < 5; i++) {
            time[i] = sc.nextInt();
        }

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

        int successful = sc.nextInt();
        int unsuccessful = sc.nextInt();
        for (int i = 0; i < 5; i++) {
            score += Math.max((i+1) * 500 / 10 * 3,
                    (250 - time[i]) * (i+1) * 2 - 50 * wrong[i]);
//            System.out.println(score);
        }
        score += successful * 100 - unsuccessful * 50;
        System.out.println(score);
    }
}
