import java.util.Scanner;

/**
 * Created by tignatchenko on 15.10.2015.
 */
public class Z1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double m[] = new double[5];
        double w[] = new double[5];
        double x[] = {500, 1000, 1500, 2000, 2500};
        for (int i = 0; i<5; i++) {
            m[i] = (double)sc.nextInt();
        }
        for (int i = 0; i<5; i++) {
            w[i] = (double)sc.nextInt();
        }
        int h1 = sc.nextInt();
        int h2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i<5; i++) {
            sum+=Math.max(0.3*x[i],(1-m[i]/250)*x[i]-50*w[i]);
        }
        sum+=h1*100;
        sum-=h2*50;
        System.out.println((int)sum);
    }
}
