/*
 * Code Author: Jayesh Udhani
 * Dhirubhai Ambani Institute of Information and Communication Technology (DA-IICT ,Gandhinagar)
 */
import java.io.*;
import java.util.*;

public class Order {
	public static void main(String args[])
	{
		InputReader in = new InputReader(System.in);
		OutputStream outputStream = System.out;
		PrintWriter out = new PrintWriter(outputStream);
		//----------My Code Starts Here----------
		int hs,hu;
		int[] arr=new int[]{500, 1000, 1500, 2000,2500};
		int[] m=new int[5];
		int[] w=new int[5];
		int[] ans=new int[5];
		Arrays.fill(ans, 0);
		for(int i=0;i<5;i++)
			m[i]=in.nextInt();
		for(int i=0;i<5;i++)
			w[i]=in.nextInt();
		hs=in.nextInt();
		hu=in.nextInt();
		for(int i=0;i<5;i++)
		{
			int x=(3*arr[i])/10;
			int y=((250-m[i])*arr[i])/250-50*w[i];
			ans[i]= Math.max(x,y);
		}
		System.out.println(ans[0]+ans[1]+ans[2]+ans[3]+ans[4]+100*hs-50*hu);
		out.close();
		//---------------The End———————————————————
	}
	static class InputReader {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public InputReader(InputStream inputstream) {
			reader = new BufferedReader(new InputStreamReader(inputstream));
			tokenizer = null;
		}

		public String nextLine(){
			String fullLine=null;
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					fullLine=reader.readLine();
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
				return fullLine;
			}
			return fullLine;
		}
		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}
