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

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Nasko
 */
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);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, InputReader in, PrintWriter out) {

            int ret = 0;
            int[] p = new int[5];
            int[] w = new int[5];
            int[] score = new int[]{500, 1000, 1500, 2000, 2500};

            for (int i = 0; i < 5; ++i) {
                p[i] = in.nextInt();
            }
            for (int i = 0; i < 5; ++i) {
                w[i] = in.nextInt();
            }

            int h = in.nextInt();
            int u = in.nextInt();
            for (int i = 0; i < 5; ++i) {


                ret += Math.max((3 * score[i]) / 10, ((250 - p[i]) * score[i]) / 250 - (50 * w[i]));

            }
            ret += h * 100;
            ret -= u * 50;
            out.println(ret);
        }

    }

    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());
        }

    }
}

