
import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		try (Scanner scan = new Scanner(System.in)) {
			
			double[] point = {500,1000,1500,2000,2500};
			double[] min = new double[5];
			double[] w = new double[5];
			for (int i=0;i<5;i++)min[i]=scan.nextDouble();
			for (int i=0;i<5;i++)w[i]=scan.nextDouble();
			double hs = scan.nextDouble();
			double hu = scan.nextDouble();
			
			double ans = 0;
			for (int i=0;i<5;i++){
				ans += Math.max(.3*point[i], (1.-min[i]/250)*point[i] - 50*w[i]);
			}
			ans+=100*hs;
			ans-=50*hu;
			System.out.println((int)Math.round(ans));
			
		}
	}
}
