import java.util.*;
import java.io.*;
import java.lang.Object;
public class CF334A {

	public static void main(String[] args) throws IOException{
		Scanner infile = new Scanner(System.in);
		int[] times = new int[5];
		int[] wrong = new int[5];
		int[] hacks = new int[2];
		for(int i = 0; i < 5; i++)
		{
			times[i] = infile.nextInt();
		}
		for(int i = 0; i < 5; i++)
		{
			wrong[i] = infile.nextInt();
		}
		for(int i = 0; i < 2; i++)
		{
			hacks[i] = infile.nextInt();
		}
		int[] maxproblems = {500, 1000, 1500, 2000, 2500};
		int[] finalscores = new int[5];
		for(int i = 0 ; i < 5; i++)
		{
			finalscores[i] = (Math.max(3*maxproblems[i]/10, (250-times[i])*maxproblems[i]/250-50*wrong[i]));
		}
		int hack = hacks[0]*100-50*hacks[1];
		int sum = 0;
		for(int i = 0; i < 5; i++)
		{
			sum = finalscores[i]+sum;
		}
		sum = sum+hack;
		System.out.println(""+sum);
	}
	
}