import java.util.*;
public class uncowed {
	static int ans,a,b;
	static int[] aa=new int[10];
	static int[] bb=new int[10];
	static int[] cc={500,1000,1500,2000,2500};

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		for(int i=0;i<5;i++)
			aa[i]=in.nextInt();
		for(int i=0;i<5;i++)
			bb[i]=in.nextInt();
		ans=0;
		for(int i=0;i<5;i++)
			ans+=Math.max(3*cc[i]/10,(250-aa[i])*cc[i]/250-50*bb[i]);
		ans+=100*in.nextInt();
		ans-=50*in.nextInt();
		System.out.println(ans);
	}
}