//package A;
// In the name of Allah
// Haj_Vahid

import java.util.Scanner;

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

        int[] points = {500, 1000, 1500, 2000, 2500};

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

        int sum = 0;
        for (int i=0; i<5; i++){
            m[i] = s.nextInt();
        }
        for (int i=0; i<5; i++){
            w[i] = s.nextInt();
        }

        for (int i=0; i<5; i++){
            int a = (250-m[i])*(points[i]/250) - (w[i] * 50);
            int b = (points[i]*3)/10;

            sum += Math.max(a,b) ;
        }

        sum += (s.nextInt()*100);
        sum -= (s.nextInt()*50);

        System.out.println(sum);
    }
}
