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


public class R334A {

    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);
        PrintWriter out = new PrintWriter(System.out);
        int[] p = {500, 1000, 1500, 2000, 2500};
        int[] m = new int[5];
        int[] w = new int[5];
        for (int i = 0; i < m.length; i++) {
            m[i] = in.nextInt();
        }
        for (int i = 0; i < w.length; i++) {
            w[i] = in.nextInt();
        }
        int h = in.nextInt();
        int unH = in.nextInt();
        int score = 0;
        for (int i = 0; i < p.length; i++) {
            int wrong = 50 * w[i];
            int min = (int) 0.3 * p[i];
//          int ss = (int) ((1 - (m[i]/250.0)) * p[i]);
            int ss = (int) (((250 - m[i])/250.0) * p[i]);
            score += Math.max(min, ss - wrong);
        }
        score += (100 * h);
        score -= (50 * unH);
        out.println(score);
        out.flush();        
    }
    
        
    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());
        }

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

    }

}
