import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		TaskC solver = new TaskC();
		solver.solve(1, in, out);
		out.close();

	}

	static class TaskC {
		public void solve(int testNumber, InputReader in, PrintWriter out) {
			int m[] = new int[5] ; 
			int x[] = new int[5] ; 
			int w[] = new int[5] ; 
			int sum =0  ;
			for (int i = 0; i < 5; i++)
			{
				m[i]=in.nextInt(); 
				x[i]=500*(i+1) ;
			}
			for (int i = 0; i <5; i++)
			{
				w[i]= in.nextInt(); 
				double b = m[i]/250.0 ;
				double d = (x[i]*(1-b)) - (50*w[i]) ;
				sum+=Math.max(0.3*x[i], d) ;

			}
			int hs = in.nextInt(); 
			int hu = in.nextInt(); 
			sum +=(100*hs) ; 
			sum+=(-50*hu) ;
			out.print(sum);

		}


		public static boolean isPrime (long num){
			if (num < 2) return false;
			if (num == 2) return true;
			if (num % 2 == 0) return false;
			for (long i = 3*1l; i * i <= num; i += 2)
				if (num % i == 0) return false;
			return true;
		}
	}
	static class InputReader {
		public BufferedReader	reader;
		public StringTokenizer	tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream), 32768);
			tokenizer = null;
		}

		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 int nextInt() {
			return Integer.parseInt(next());
		}

	}
	static class Vertix{
		int x ; 
		ArrayList<Vertix> children; 
		Vertix parent; 

		public Vertix(int x){
			this.x = x ;
			this.children= new ArrayList<Vertix>();
		}

	}

	static class Pair implements Comparable<Pair> {
		int x ; 
		int y ; 

		public Pair(int x, int y) {
			this.x = x ;
			this.y = y ; 

		}

		@Override
		public int compareTo(Pair p) {
			if (this.x < p.x)
				return -1;
			else if (this.x > p.x)
				return 1;
			else
				return 0;

		}
		//
	}

}