import java.util.*;

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)*2))-(50*w1); 
        int k2 = (((250-m2)*4))-(50*w2); 
        int k3 = (((250-m3)*6))-(50*w3); 
        int k4 = (((250-m4)*8))-(50*w4); 
        int k5 = (((250-m5)*10))-(50*w5);
        
        int j1 = Math.max(150, k1);
        int j2 = Math.max(300, k2);
        int j3 = Math.max(450, k3);
        int j4 = Math.max(600, k4);
        int j5 = Math.max(750, k5);
        
        
        int sum = (j1+j2+j3+j4+j5)+(hs*100)-(hu*50);
        System.out.printf("%d\n", sum);
    }
    
}
