import java.util.*;

public class Uncowed {
	private static int calculate(int[] s, int[] m, int[] w, int[] h) {
		int score = 0;
		for(int i=0; i<m.length; i++) {
			score += Math.max(3*s[i]/10, (s[i] - s[i]*m[i]/250 - 50*w[i]));
		}
		score += h[0]*100;
		score -= h[1]*50;
		return score;
	}

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int[] score = new int[] { 500, 1000, 1500, 2000, 2500 };
		int[] m = new int[5]; for(int i=0; i<5; i++) m[i] = s.nextInt();
		int[] w = new int[5]; for(int i=0; i<5; i++) w[i] = s.nextInt();
		int[] h = new int[2]; for(int i=0; i<2; i++) h[i] = s.nextInt();
		System.out.println(calculate(score, m, w, h));
	}
}