import java.util.Scanner;


public class A {

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

}
