import java.io.FileNotFoundException;
import java.util.Scanner;

/**
 * Created by slycer on 10/15/15.
 */
public class P1_B {

    public static void main ( String [] args ) throws FileNotFoundException {
        Scanner s = new Scanner ( System.in );
        int [] x = new int[5];
        x[0] = 500;
        x[1] = 1000;
        x[2] = 1500;
        x[3] = 2000;
        x[4] = 2500;
        int [] m = new int[5];
        for ( int i=0; i<5; i++ ){
            m[i] = s.nextInt();
        }
        int [] w = new int[5];
        for ( int i=0; i<5; i++ ){
            w[i] = s.nextInt();
        }
        int success = s.nextInt();
        int failed = s.nextInt();

        int score = 0;
        for ( int i=0; i<5; i++ ){
            int current = Math.max( (3*x[i]/10), ( ( 250 - m[i] )*x[i] )/250 - 50 * w[i] );
            score += current;
        }
        score += success * 100 - failed * 50;
        System.out.println( score );
    }


}
