import java.util.Scanner;


public class A {

	public static void main(String[] args) {
		Scanner k = new Scanner(System.in);
		
		int x[] = {500, 1000, 1500, 2000, 2500};
		
		int m[] = new int[5];
		
		
		for (int i = 0; i < 5; i++) {
			m[i] = k.nextInt();
		}
		
		int w[] = new int[5];
		
		for (int i = 0; i < 5; i++) {
			w[i] = k.nextInt();
		}
		
		int hs = k.nextInt();
		int hu = k.nextInt();
		
		int score = 0;
		
		for (int i = 0; i < 5; i++) {
			int temp = 0;
			temp = x[i] - (x[i] * m[i])/250;
			temp = temp - (50 * w[i]);
			score = (int) (score + max((3 * x[i])/10, temp));
		}
		
		score = score + (100 * hs);
		score = score - (50 * hu);
		
		System.out.println(score);
	}
	
	static int max(int x, int y) {
		if (x > y) return x;
		else return y;
	}	// TODO Auto-generated method stub
}

