import java.util.Scanner;

public class Main {
    // uno

    public static void main(String[] args) {
        Scanner lee = new Scanner(System.in);
        int puntos[] = { 500, 1000, 1500, 2000, 2500 }, min[] = new int[10], err[] = new int[10];
        int total = 0;
        for (int i = 1; i <= 5; ++i)
            min[i] = lee.nextInt();
        for (int i = 1; i <= 5; ++i)
            err[i] = lee.nextInt();
        int Hexi = lee.nextInt(), HNexi = lee.nextInt();

        for (int i = 1; i <= 5; ++i) {
            total += Math.max(puntos[i - 1] / 10 * 3, puntos[i - 1]
                    - puntos[i - 1] * min[i] / 250 - 50 * err[i]);
        }
        
        // trucos exitose 100 no exitoso 50
        total = 100 * Hexi - 50 * HNexi;

        System.out.println(total);
    }
}
