import java.util.*;

public class A {

    public static void main(String[] args) {
    	Scanner s = new Scanner(System.in);
    	int[] m = new int[5];
    	int[] w = new int[5];
    	int[] n = {500, 1000, 1500, 2000, 2500};
    	for(int i=0; i<5; i++)
    		m[i] = s.nextInt();
    	for(int i=0; i<5; i++)
    		w[i] = s.nextInt();
    	int h1 = s.nextInt();
    	int h2 = s.nextInt();
    	int score = 0;
    	for(int i=0; i<5; i++)
    		score += Math.max(0.3*n[i], n[i] - n[i]*m[i]/250 - 50*w[i]);
    	score += 100*h1 - 50*h2;
    	System.out.println(score);
    }
}
