import java.util.Scanner;

public class Solution3 {
	static long[][] dp;
	public static void main(String[] args) throws Exception {
		Scanner in = new Scanner(System.in);
		double[] x = new double[]{500,1000,1500,2000,2500};
		double[] m = new double[5];
		for(int i = 0; i < 5; i++) {
			m[i] = in.nextInt();
		}
		double[] w = new double[5];
		for(int i = 0; i < 5; i++) {
			w[i] = in.nextInt();
		}
		int hs = in.nextInt();
		int hu = in.nextInt();
		double score = 0;
		for(int i = 0; i < 5; i++) {
			score += Math.max(0.3 * x[i], (1.0 - m[i] / 250.0) * x[i] - 50.0 * w[i]);
		}
		score += 100.0 * hs;
		score -= 50.0 * hu;
		System.out.println((int)Math.round(score));
	}
}