import java.util.Scanner;

public class UncowedForces {

    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);
        
        int m1 = input.nextInt();
        int m2 = input.nextInt();
        int m3 = input.nextInt();
        int m4 = input.nextInt();
        int m5 = input.nextInt();
        
        int w1 = input.nextInt();
        int w2 = input.nextInt();
        int w3 = input.nextInt();
        int w4 = input.nextInt();
        int w5 = input.nextInt();
        
        int hs = input.nextInt();
        int hu = input.nextInt();
        
        int k1 = (((250-m1)*500)/250)-(50*w1); 
        int k2 = (((250-m2)*1000)/250)-(50*w2); 
        int k3 = (((250-m3)*1500)/250)-(50*w3); 
        int k4 = (((250-m4)*2000)/250)-(50*w4); 
        int k5 = (((250-m5)*2500)/250)-(50*w5); 
        
        int sum = (k1+k2+k3+k4+k5)+(hs*100)-(hu*50);
        System.out.printf("%d\n", sum);
    }
    
}
