import java.util.*;
import java.io.*;

public class Template {
    FastScanner in;
    PrintWriter out;

    public void solve() throws IOException {
        int[] m = new int[5];
        int[] w = new int[5];
        int[] x = new int[5];
        x[0] = 500;
        for (int i = 1; i<5; i++) {
            x[i] = x[i-1] + 500;
        }
        for (int i = 0; i<5; i++) {
            m[i] = in.nextInt();
        }
        for (int i = 0; i<5; i++) {
            w[i] = in.nextInt();
        }
        int hs = in.nextInt();
        int hw = in.nextInt();
        int ans = 0;
        for (int i = 0; i<5; i++) {
            ans += Math.max(0.3 * x[i], (1 - (m[i]/250))*x[i] - 50*w[i]);
        }
        ans += 100*hs;
        ans -= 50*hw;
        System.out.println(ans);
    }

    public void run() {
        try {
            in = new FastScanner();

            solve();

        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        FastScanner() throws IOException {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

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

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

    public static void main(String[] arg) {
        new Template().run();
    }
}
