//package R335;

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

/**
 * @author shakhawat.hossain
 * @since 12/1/2015 9:31 PM
 */
public class A {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String[] input = br.readLine().split(" ");
        double m[] = new double[input.length];
        double w[] = new double[input.length];
        double v[] = {500, 1000, 1500, 2000, 2500};

        for (int i = 0; i < input.length; i++) {
            m[i] = Double.parseDouble(input[i]);
        }

        input = br.readLine().split(" ");

        for (int i = 0; i < input.length; i++) {
            w[i] = Double.parseDouble(input[i]);
        }

        input = br.readLine().split(" ");

        int s = Integer.parseInt(input[0]);
        int u = Integer.parseInt(input[1]);

        double result = 0;

        for (int i = 0; i < w.length; i++) {
            double p = v[i] * (1 - m[i] / 250) - 50 * w[i];
            double score = Math.max(.3 * v[i], p);
            result += score;
        }

        result -= u * 50;
        result += s * 100;

        System.out.println((int) result);

    }
}