
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

/**
 *
 * @author hossam
 */
public class Ps {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] m=new int [5],w=new int[5];
        int sh,uh,a;
        int[] x={500,1000,1500,2000,2500};
        for(int i=0;i<5;i++)
        {
            a=in.nextInt();
            m[i]=a;
        }
        
        for(int i=0;i<5;i++)
        {
            a=in.nextInt();
            w[i]=a;
        }
        sh=in.nextInt();
        uh=in.nextInt();
        int res=0;
        for(int i=0;i<5;i++)
        {
            double y=0.3*x[i];
            double z=(1-(double)m[i]/250);
            res+=(Math.max(y, z*x[i]-50*w[i]));
        }
        res+=(sh*100);
        res-=(uh*50);
        System.out.println(res);
    }}
