import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class A {	
	long m[];
	long w[];
	long hs, hu;
	long pp[];
	void readInput() throws NumberFormatException, IOException{
		//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(System.in);
		w = new long[6];
		m = new long[6];
		for(int i=1; i<6; i++)
			m[i] = sc.nextInt();
		for(int i=1; i<6; i++)
			w[i] = sc.nextInt();
		hs = sc.nextInt();
		hu = sc.nextInt();
		pp = new long[]{0, 500, 1000, 1500, 2000, 2500};
	}
	
	void solve(){
		long score = 0;
		for(int i=1; i<6; i++)
			score += Math.max( 0.3*pp[i], (1-m[i]/250.0)*pp[i]-50*w[i]);
		score += hs*100;
		score -= hu*50;
		System.out.println(score);
	}

	public static void main(String[] args) throws NumberFormatException, IOException {
		A a = new A();
		a.readInput();
		a.solve();
	}

}
