import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Created by Timur on 22.11.2016.
 */
public class _604A {
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        int m[] = new int[5];
        int w[] = new int[5];
        int points[] = {500, 1000, 1500, 2000, 2500};
        int luck, noluck;
        for(int i = 0; i < 5; i++)
            m[i] = in.nextInt();
        for(int i = 0; i < 5; i++)
            w[i] = in.nextInt();
        luck = in.nextInt();
        noluck = in.nextInt();
        double result = 0;
        for(int i = 0; i < 5;i++)
            result += Math.max(0.3 * points[i], (1 - m[i]/250.0)  * points[i] - 50 * w[i]);
        result += luck * 100 - noluck * 50;
        out.print((int)result);
        out.close();
    }
}
