
import java.util.Scanner;

public class Main {
    public static int[] t = new int[5];
    public static int[] w = new int[5];
    public static int[] x = {500, 1000, 1500, 2000, 2500};
    public static int a, b;
    public static void main(String[] args){
        Scanner S = new Scanner(System.in);
        while(S.hasNext()){
            for(int i = 0; i < t.length; ++i){
                t[i] = S.nextInt();
            }
            for(int i = 0; i < w.length; ++i){
                w[i] = S.nextInt();
            }
            a = S.nextInt();
            b = S.nextInt();
            int ans = 0;
            for(int i = 0; i < t.length; ++i){
                ans += Math.max(x[i] * 3 / 10, (x[i] - x[i] * t[i] / 250) - 50 * w[i]);
            }
            ans += 100 * a;
            ans -= 50 * b;
            System.out.println(ans);
        }
        S.close();
    }
}
