//package codeforces.cfr334div2;

import java.util.Scanner;

/**
 * Created by raggzy on 3/23/2016.
 */
public class A {
    public static void main(String[] args) {
        int[] x = new int[]{500, 1000, 1500, 2000, 2500};
        Scanner in = new Scanner(System.in);
        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 hs = in.nextInt();
        int hu = in.nextInt();
        double score = 0;
        for (int i = 0; i < 5; i++) {
            score += Math.max(0.3 * x[i], (1.0 - m[i] / 250.0) * x[i] - 50.0 * w[i]);
        }
        score += (hs * 100 - hu * 50);
        System.out.println((int) score);
    }
}
