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

public class A {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
        FastScanner sc = new FastScanner();

        int[] x = new int[] {500, 1000, 1500, 2000, 2500};
        int[] m = new int[5];
        int[] w = new int[5];
        for (int i = 0 ; i < 5; i++) {
            m[i] = sc.nextInt();
        }
        for (int i = 0 ; i < 5; i++) {
            w[i] = sc.nextInt();
        }
        int hacksSuccess = sc.nextInt();
        int hacksFailure = sc.nextInt();

        double sum = 0;
        for (int i = 0 ; i < 5; i++) {
            double score = Math.max(0.3*x[i], (1-((double)m[i])/250)*x[i] - (50*w[i]));
            sum += score;
        }

        sum += 100 * hacksSuccess;
        sum -= 50 * hacksFailure;

        System.out.println(Math.round(sum));
    }

    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(Reader in) {
            br = new BufferedReader(in);
        }

        public FastScanner() {
            this(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        // Slightly different from java.util.Scanner.nextLine(),
        // which returns any remaining characters in current line,
        // if any.
        String readNextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}
