import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class A {
    public static void main(String[] args) {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = null;
        try {
            line = br.readLine();
            String[] m = line.split(" ");
            line = br.readLine();
            String[] w = line.split(" ");
            line = br.readLine();
            String[] h = line.split(" ");

            double score = 0;
            for (int i = 500; i < 3000; i += 500) {
                score += Math.max((double) i / 3, (1 - (double) Integer.parseInt(m[i / 500 - 1]) / 250) * i - 50
                        * Integer.parseInt(w[i / 500 - 1]));
            }
            score += 100 * Integer.parseInt(h[0]) - 50 * Integer.parseInt(h[1]);
            System.out.println((int) score);

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
