import java.io.*;
import java.util.*;

public class A {
	public static void main(String[] args) {
		MyScanner sc = new MyScanner();
		int[] maxScore = { 500, 1000, 1500, 2000, 2500 };
		int[] submissionTime = new int[5];
		int[] wrongSubmission = new int[5];
		for (int i = 0; i < 5; i++) {
			submissionTime[i] = sc.nextInt();
		}
		for (int i = 0; i < 5; i++) {
			wrongSubmission[i] = sc.nextInt();
		}
		int suc = sc.nextInt();
		int err = sc.nextInt();
		double score = 0;
		for (int i = 0; i < 5; i++) {
			double o1 = maxScore[i] * 0.3;
			double tmp = submissionTime[i] / 250.0;
			double o2 = (1 - tmp) * maxScore[i] - (50 * wrongSubmission[i]);
			score += Math.max(o1, o2);
		}

		score += suc * 100;
		score -= err * 50;
		System.out.println((int) score);

	}

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

		public MyScanner() {
			this.br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (this.st == null || !this.st.hasMoreElements()) {
				try {
					this.st = new StringTokenizer(this.br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return this.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 = this.br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}

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