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

/**
 * @author Don Li
 */
public class UncowedForces {

    static final int[] score = new int[]{500, 1000, 1500, 2000, 2500};

    void solve() {
        int[] m = new int[5];
        for (int i = 0; i < 5; i++) m[i] = in.nextInt();
        int[] w = new int[5];
        for (int i = 0; i < 5; i++) w[i] = in.nextInt();
        int[] h = new int[2];
        for (int i = 0; i < 2; i++) h[i] = in.nextInt();

        int sum = 0;
        for (int i = 0; i < 5; i++) {
            sum += Math.max(score[i] / 10 * 3, score[i] - score[i] / 250 * m[i] - 50 * w[i]);
        }
        sum += h[0] * 100;
        sum -= h[1] * 50;
        out.println(sum);
    }

    public static void main(String[] args) {
        in = new FastScanner(new BufferedReader(new InputStreamReader(System.in)));
        out = new PrintWriter(System.out);
        new UncowedForces().solve();
        out.close();
    }

    static FastScanner in;
    static PrintWriter out;

    static class FastScanner {
        BufferedReader in;
        StringTokenizer st;

        public FastScanner(BufferedReader in) {
            this.in = in;
        }

        public String nextToken() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(in.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(nextToken());
        }

        public long nextLong() {
            return Long.parseLong(nextToken());
        }

        public double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}
