
import java.util.*;

public class cf604a {

    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);

        int[] m = new int[5];
        int[] w = new int[5];
        int[] sc = {500, 1000, 1500, 2000, 2500};
        for (int i = 0; i < 5; i++) {
            m[i] = input.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            w[i] = input.nextInt();
        }

        int h = input.nextInt();
        int wh = input.nextInt();
        int sum = 0;
        for (int i = 0; i < 5; i++) {
            sum = sum + Math.max((int) (sc[i] * 0.3),sc[i]-sc[i]*m[i]/250-50*w[i]);
        }
        sum += (h * 100);
        sum -= (wh * 50);
        
        System.out.println(sum);

    }

}
