import java.io.*;
import java.util.*;
public class A {

	public static void main(String[] args) throws Exception{
		BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] stats = new int[5][2];
		int total = 0;
		
		StringTokenizer st = new StringTokenizer(f.readLine());
		for(int i = 0;i<5;i++){
			stats[i][0] = Integer.parseInt(st.nextToken());
		}
		st = new StringTokenizer(f.readLine());
		for(int i = 0;i<5;i++){
			stats[i][1] = Integer.parseInt(st.nextToken());
		}
		st = new StringTokenizer(f.readLine());
		total += Integer.parseInt(st.nextToken())*100 - Integer.parseInt(st.nextToken())*50;
		
		for(int i = 1;i<6;i++){
			total += Math.max(150*i, (500 - stats[i-1][0]*2)*i-50*stats[i-1][1]);
		}
		
		System.out.println(total);
	}

}
