import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class A {
    private static final int NUM_PROBLEMS = 5;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        StringTokenizer st;

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

        st = new StringTokenizer(br.readLine());
        int[] m = new int[NUM_PROBLEMS];
        for (int i = 0; i < NUM_PROBLEMS; i++) {
            m[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        int[] w = new int[NUM_PROBLEMS];
        for (int i = 0; i < NUM_PROBLEMS; i++) {
            w[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        int sH = Integer.parseInt(st.nextToken());
        int usH = Integer.parseInt(st.nextToken());

        double score = 0.0;
        for (int i = 0; i < 5; i++) {
            score += Math.max(0.3 * points[i], (250 - m[i]) * (points[i] / 250) - 50 * w[i]);
        }
        score += sH * 100 - usH * 50;

        out.println((int) score);
        out.close();
    }
}
