import java.util.*;
import java.io.*;
 
public class File {
	public static class FastScanner {
		BufferedReader br;
		StringTokenizer st;
		
		public FastScanner() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}
		
		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					e.printStackTrace();
				}
			}
			
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
	}
		
	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
		
		
		// Score for each problem.
		// x = max point value
		// w = # of wrong submissions
		// max (0.3x, (1 - m/250)x - 50w)
		
		int[] points = new int[] {500, 1000, 1500, 2000, 2500};
		
		int[] m = new int[5];
		for (int i = 0; i < 5; i++) {
			m[i] = sc.nextInt();
		}
		
		int[] w = new int[5];
		for (int i = 0; i < 5; i++) {
			w[i] = sc.nextInt();
		}
		
		int hacks = sc.nextInt();
		int fails = sc.nextInt();
		
		long score = hacks * 100 - fails * 50;
		
		
		for (int i = 0; i < 5; i++) {
			score += calculate(points[i], m[i], w[i]);
		}
		
		
		
		
		out.println(score);
		
		out.close();
	}
	
	public static double calculate(int x, int m, int w) {
		double p1 = 0.3 * (double)x;
		double p2 = (((250.0 - (double)m) / 250.0) * x) - (50 * w);

		return Math.max(p1, p2);
	}
}











    