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

public class CodeForces
{
	public static void main(String[] args)
	{
		Scanner input = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

		int m1 = input.nextInt();
		int m2 = input.nextInt();
		int m3 = input.nextInt();
		int m4 = input.nextInt();
		int m5 = input.nextInt();

		int w1 = input.nextInt();
		int w2 = input.nextInt();
		int w3 = input.nextInt();
		int w4 = input.nextInt();
		int w5 = input.nextInt();

		int hs = input.nextInt();
		int hu = input.nextInt();

		int sum = 0;
		sum += Math.max(0.3 * 500, (1 - m1 / 250.0) * 500 - 50 * w1);
		sum += Math.max(0.3 * 1000, (1 - m2 / 250.0) * 1000 - 50 * w2);
		sum += Math.max(0.3 * 1500, (1 - m3 / 250.0) * 1500 - 50 * w3);
		sum += Math.max(0.3 * 2000, (1 - m4 / 250.0) * 2000 - 50 * w4);
		sum += Math.max(0.3 * 2500, (1 - m5 / 250.0) * 2500 - 50 * w5);
		sum += (hs * 100);
		sum -= (hu * 50);
		System.out.println(sum);
	}
}