import java.io.*;
import java.util.*;
import java.util.regex.Matcher;

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        //Scanner scanner = new Scanner(new File("input.txt"));
        int[] x = {500,1000,1500,2000,2500};
        int[] m = new int[5];
        int[] w = new int[5];
        for (int i = 0; i < 5; i++) {
            m[i]=scanner.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            w[i] = scanner.nextInt();
        }
        int score = 0;
        for (int i = 0; i < 5; i++) {
            score+=Math.max(0.3*x[i],((1-m[i]/250.0)*x[i]-50*w[i]));
        }
        int hs=scanner.nextInt();
        int hu=scanner.nextInt();
        if (hs!=0) score+=hs*100;
        if (hu!=0) score-=hu*50;
        System.out.println(score);

    }
}







