import java.util.Scanner;

public class A604 {

	public static void main(String[] args) {
		Scanner input = new Scanner(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 sub1 = (int) Math.max(0.3 * 500 / 10, (250 - m1) * 500 / 250 - (50 * w1));
		int sub2 = (int) Math.max(0.3 * 1000 / 10, (250 - m2) * 1000 / 250 - (50 * w2));
		int sub3 = (int) Math.max(0.3 * 1500 / 10, (250 - m3) * 1500 / 250 - (50 * w3));
		int sub4 = (int) Math.max(0.3 * 2000 / 10, (250 - m4) * 2000 / 250 - (50 * w4));
		int sub5 = (int) Math.max(0.3 * 2500 / 10, (250 - m5) * 2500 / 250 - (50 * w5));
		int ans = sub1 + sub2 + sub3 + sub4 + sub5 + (100 * hs) - (50 * hu);
		System.out.println(ans);

	}

}