import java.util.Scanner;

public class Main{
	static Scanner e = new Scanner(System.in);
	static double f(double m, double w, double x){
		double a = 0.3*x;
		double b = (1.-m/250.)*x-50*w;
		if(a > b) return a;
		return b;
	}
	public static void main(String[] args){
		double[] m = new double[5];
		double[] w = new double[5];
		double[] h = new double[2];
		double[] x = {500, 1000, 1500, 2000, 2500};
		for(int i = 0; i < 5; i++) m[i] = e.nextInt();
		for(int i = 0; i < 5; i++) w[i] = e.nextInt();
		for(int i = 0; i < 2; i++) h[i] = e.nextInt();
		double sol = 100*h[0]-50*h[1];
		for(int i = 0; i < 5; i++)
		{
			sol += f(m[i], w[i], x[i]);
		}
		System.out.println((int)sol);
	}
}
