import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Problem604A
{
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(br.readLine());
		ArrayList<Integer> m = new ArrayList<Integer>();
		ArrayList<Integer> w = new ArrayList<Integer>();
		int hs = 0, hu = 0;
		
		while(st.hasMoreTokens())
		{
			m.add(Integer.parseInt(st.nextToken()));
		}
		st = new StringTokenizer(br.readLine());
		while(st.hasMoreTokens())
		{
			w.add(Integer.parseInt(st.nextToken()));
		}
		st = new StringTokenizer(br.readLine());
		hs = Integer.parseInt(st.nextToken());
		hu = Integer.parseInt(st.nextToken());
		
		float total = 0;
		for(int i=0 ; i<m.size() ; i++)
		{
			total += (1-m.get(i)/250.0)*500*(i+1);
			total -= 50*w.get(i);
		}
		total += 100*hs;
		total -= 50*hu;
		System.out.println(total);
	}
}
