import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

public class CF334A {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		PrintWriter cout = new PrintWriter(System.out);
		int N = 5;
		int[] m = new int[5], w = new int[5], b = new int[] { 500, 1000, 1500, 2000, 2500 };
		for (int i = 0; i < N; ++i)
			m[i] = cin.nextInt();
		for (int i = 0; i < N; ++i)
			w[i] = cin.nextInt();
		int h1 = cin.nextInt(), h2 = cin.nextInt();
		int sum = 0;
		for (int i = 0; i < N; ++i)
			sum += Math.max(0.3 * b[i], b[i] * (250 - m[i]) / 250 - 50 * w[i]);
		sum += 100 * h1 - 50 * h2;
		cout.println(sum);
		cout.flush();
	}

}