import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Uncowed_Forces {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		// Input
		int m[] = new int[5];
		int w[] = new int[5];
		int hs;
		int hu;
		String tmp[] = br.readLine().split(" ");
		for(int i = 0;i < 5;i++) {
			m[i] = Integer.parseInt(tmp[i]);
		}
		tmp = br.readLine().split(" ");
		for(int i = 0;i < 5;i++) {
			w[i] = Integer.parseInt(tmp[i]);
		}
		tmp = br.readLine().split(" ");
		hs = Integer.parseInt(tmp[0]);
		hu = Integer.parseInt(tmp[1]);
		
		// Algorithm
		float score = 0;
		int x = 500;
		for(int i = 0;i < 5;i++) {
			score += Math.max(0.3*x*(i + 1), ((1 - (m[i]/250.0))*x*(i + 1)) - 50*w[i]);
		}
		score += 100*hs;
		score -= 50*hu;
		
		// Display result
		System.out.println((int)score);
		
		br.close();
	}
}
