import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;


public class A {
	
	Scanner scanner = new Scanner(System.in);
	BufferedReader cin = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter cout = new PrintWriter(System.out);
	StringTokenizer tok;
		
	double[] m, w, x;
	
	double h1, h2;
	
	double ans = 0;
	
	private void run() throws IOException {
		
		m = new double[5];
		w = new double[5];
		x = new double[5];
		
		for (int i = 0; i < 5; ++i) {
			x[i] = 500 * (i + 1);
		}
		
		for (int i = 0; i < 5; ++i) {
			m[i] = scanner.nextDouble();
			//System.out.println(m[i]);
		}
		
		for (int i = 0; i < 5; ++i) {
			w[i] = scanner.nextDouble();
			//System.out.println(x[i]);
		}
		
		h1 = scanner.nextDouble();
		h2 = scanner.nextDouble();
		
		for (int i = 0; i < 5; ++i) {
			ans = ans + Math.max(0.3 * x[i], (1 - m[i] / 250) * x[i] - 50 * w[i]);
			//System.out.println(ans);
		}
		
		ans += 100 * h1;
		ans -= 50 * h2;
		
		cout.println((int)(ans));
		
		scanner.close();
		cin.close();
		cout.close();
	}
	
	public static void main(String[] args) throws IOException {
		A solution = new A();
		solution.run();
	}
}
