import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class CF604A {

	public static void main(String[] args) {
		MyScanner sc = new MyScanner();
		String[] times = sc.nextLine().split(" ");
		String[] wrong = sc.nextLine().split(" ");
		String[] hacks = sc.nextLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i<times.length; i++){
			int x = 500*(i+1);
			int m = Integer.parseInt(times[i]), w = Integer.parseInt(wrong[i]);
//			sum+=Math.max(.3*x, (1-Integer.parseInt(times[i])/250.)*x-50*Integer.parseInt(wrong[i]));
			sum+=Math.max(x * 3 / 10, (250 - m) * x / 250 - 50 * w);
		}
		sum+=Integer.parseInt(hacks[0])*100-Integer.parseInt(hacks[1])*50;
		PrintWriter out = new PrintWriter(System.out);
		out.println(sum);
		out.close();
	}

	
	// -----------PrintWriter for faster output---------------------------------
	public static PrintWriter out;

	// -----------MyScanner class for faster input----------
	public static class MyScanner {
		BufferedReader br;
		StringTokenizer st;

		public MyScanner() {
			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());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	// --------------------------------------------------------
}
