import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;

public class Solution {
	
	
	public void calc() throws Throwable
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//BufferedReader br = new BufferedReader(new FileReader("input1.txt"));
		
		String[] vals = br.readLine().split(" ");
		
		int max[] = {500, 1000, 1500, 2000 , 2500 };
		int m[] = new int[5];
		int w[] = new int[5];
		int h[] = new int[2];
		
		
		for (int i = 0; i < 5; i++)
		{
			
			m[i] = Integer.parseInt(vals[i]);
		}
		
		vals = br.readLine().split(" ");
		
		for (int i = 0; i < 5; i++)
		{
			w[i] = Integer.parseInt(vals[i]);
		}		
		
		vals = br.readLine().split(" ");
		
		for (int i = 0; i < 2; i++)
		{
			h[i] = Integer.parseInt(vals[i]);
		}
		
		Double total = 0d;
		for (int i = 0; i < 5; i++)
		{
			Double v1 = 0.3d*max[i];
			Double v2 = (1 - m[i]/250d)*max[i] - 50*w[i];
			
			total += v1 < v2 ? v2 : v1;
		}
		
		total += 100 * h[0];
		total -= 50 * h[1];
		
		System.out.println(total.intValue());
		
		
	}

	public static void main(String[] args) throws Throwable{
	

		Solution sol = new Solution();
		sol.calc();

	}
	
	
	

}
