
import java.util.*;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[] points = { 500, 1000, 1500, 2000, 2500};
		int[] m = new int[5];
		for(int i=0;i<5;i++) m[i] = sc.nextInt();
		int[] wrong = new int[5];
		for(int i=0;i<5;i++) wrong[i] = sc.nextInt();
		double ans = 0;
		for(int i=0;i<5;i++){
			ans+=Math.max(0.3*points[i], (1-1.0*m[i]/250)*points[i]-50*wrong[i]);
			
		}
		ans+=sc.nextInt()*100;
		ans-=sc.nextInt()*50;
		System.out.println(ans);
	}
}
