
import java.util.*;

/**
 *
 * @author mazenbadr
 */
public class CodeForcesRound334A {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner in = new Scanner(System.in);
        int[] m = new int[5];
        int[] w = new int[5];
        int hs = 0;
        int hu = 0;
        int[] scores = {500, 1000, 1500, 2000, 2500};
        for (int i = 0; i < 5; i++) {
            m[i] = in.nextInt();
        }
        for (int i = 0; i < 5; i++) {
            w[i] = in.nextInt();
        }
        hs = in.nextInt();
        hu = in.nextInt();
        int score = 0;
        for (int i = 0; i < 5; i++) {
            score += Math.max(0.3 * scores[i], ((1.0 - (m[i] / 250.0)) * scores[i]) - (50 * w[i]));
        }
        score += (hs * 100);
        score -= (hu * 50);
        System.out.print(score);
    }

}
