import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.math.*;

public class Uncowed {
	public static void main(String[] args)throws IOException{
		 BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		 StringTokenizer st;
		  int[] mArray = new int[5];
		  int[] wArray = new int[5];
		  
		  st = new StringTokenizer(in.readLine()); 
		 for(int i = 0 ; i < 5 ; i ++){
			 mArray[i] = Integer.parseInt(st.nextToken());
		 }
	
		 st = new StringTokenizer(in.readLine());
		 for(int i = 0 ; i < 5 ; i ++){
			 wArray[i] = Integer.parseInt(st.nextToken());
		 }
		 st = new StringTokenizer(in.readLine());
	int hS = Integer.parseInt(st.nextToken());
	int hU = Integer.parseInt(st.nextToken());
	
	int total = 0;
	for(int i = 0 ; i < 5 ; i++){
	total += 
	Math.max( (.3* (500 * (i+1)) ), (1-(mArray[i]) / 250) * (500*i) - (50*wArray[i]) );
	}
	total += (hS*100) - (hU*50);
	System.out.println(total);
	}
}