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

public class UncowedForces {
	public static BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
	public static StringTokenizer st;
	
	public static String nextLine() throws IOException {
		return f.readLine();
	}
	
	public static String nextString() throws IOException {
		while (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(f.readLine());
		return st.nextToken();
	}
	
	public static int nextInt() throws IOException {
		return Integer.parseInt(nextString());
	}
	
	public static void main(String[] args) throws IOException {
		int[] x = new int[]{500, 1000, 1500, 2000, 2500};
		int[] m = new int[5];
		int[] w = new int[5];
		for (int i = 0; i < 5; i++)
			m[i] = nextInt();
		for (int i = 0; i < 5; i++)
			w[i] = nextInt();
		int hs = nextInt();
		int hu = nextInt();
		
		double sum = 0;
		for (int i = 0; i < 5; i++)
			sum += Math.max(0.3*x[i], (1-m[i]/250.0)*x[i]-50*w[i]);
		sum += hs*100 - hu*50;
		
		System.out.println((int)sum);
	}
}