
import java.util.Scanner;


public class PA {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Communication S=new Communication();
		
		int[] m=S.is();
		int[] w=S.is();
		int[] h=S.is();
		
		int tot=0;
		for(int i=0;i<5;i++){
			tot=tot+rate(w[i],m[i],i+1);
		}
		
		tot=tot+h[0]*100-h[1]*50;
		int out=(int) tot;
		
		
		S.send(tot);
		
		
		
		
		
		
		
		
		
		
		
		
		
	}
	
	static int rate(int w, int m, int x){
		int out=(250-m)*x*2-50*w;
		int o2=150*x;
		if(o2>out){
			return o2;
		}
		return out;
	}
	
	
	
	
	/////////////////////////////////////
	
	static class Communication {
		
		Scanner sc;
		
		
		public static void send(Object x){
			System.out.println(x);
		}
		
		public static void sendw(Object x){
			System.out.print(x);
		}
		
		
		public Communication(){
			sc=new Scanner(System.in);
		}
		
		
		
		public int i(){
			return Integer.valueOf(sc.nextLine());
		}
		
		public int[] is(){
			String s=sc.nextLine();
			String[] s2=s.split(" ");
			int[] j=new int[s2.length];
			for(int i=0;i<s2.length;i++){
				j[i]=Integer.valueOf(s2[i]);
			}
			return j;
		}
		
		public String s(){
			return sc.nextLine();
		}
		
		public String[] ss(){
			return sc.nextLine().split(" ");
		}
		
		public char c(){
			return sc.nextLine().charAt(0);
		}
		
		public char[] cs(){
			return sc.nextLine().toCharArray();
		}
		
		public long l(){
			return Long.valueOf(sc.nextLine());
		}
		

	}



}







