import java.util.Scanner;

/**
 * Created by Chihwa on 12/1/2015.
 */
public class A334 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int m[] = new int[5];
        int w[] = new int[5];
        for (int i = 0; i < 5; i++) {
            m[i] = s.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            w[i] = s.nextInt();
        }
        int hs = s.nextInt();
        int hu = s.nextInt();

        int r = 0;

        int x[] = new int[]{500, 1000, 1500, 2000, 2500};

        for (int i = 0; i < 5; i++) {
            r += Math.max(0.3 * x[i], (1 - (m[i] / 250.0)) * x[i] - (50 * w[i]));
        }
        r += (hs * 100) - (hu * 50);

        System.out.println(r);
    }
}
