/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner in = new Scanner(System.in);
		double res = 0;
		double[] x = {500, 1000, 1500, 2000, 2500};
		double[] m = new double[5];
		double[] w = new double[5];
		
		for(int i=0; i<5; i++)
			m[i] = in.nextInt();
			
		for(int i=0; i<5; i++)
			w[i] = in.nextInt();
			
		for(int i=0; i<5; i++)
			res += (Math.max(0.3 * x[i], (1 - 0.004*m[i])*x[i] - 50*w[i]));
		
		res += in.nextInt()*100;
		res -= in.nextInt()*50;
		
		System.out.println(String.format("%.0f", res));
	}
}