import java.util.*;
public class UncowedForces {
    public static void main(String[] args) {
        Scanner in = new Scanner (System.in);
        int[] m = new int[5];
        int[] w = new int[5];
        for (int i = 0; i < 5; i++){m[i]=in.nextInt();}
        for (int i = 0; i < 5; i++){w[i]=in.nextInt();}
        int hs = in.nextInt();
        int hu = in.nextInt();
        int sum = 0;
        double re1 = ((1-(m[0]/250.0))*500)-(50*w[0]);sum+=re1;
        double re2 = ((1-(m[1]/250.0))*1000)-(50*w[1]);sum+=re2;
        double re3 = ((1-(m[2]/250.0))*1500)-(50*w[2]);sum+=re3;
        double re4 = ((1-(m[3]/250.0))*2000)-(50*w[3]);sum+=re4;
        double re5 = ((1-(m[4]/250.0))*2500)-(50*w[4]);sum+=re5;
        //System.out.println(sum);
        sum = sum +((hs*100)+(hu*50));
        System.out.println(sum);
    }
}
