import java.util.*;
import java.io.*;
public class Train {

    public static void main(String args[]) throws IOException{
        Scanner input = new Scanner(System.in);
        int[]score = new int[5];
        int j = 0 ;
        for(int i = 0 ; i < 5 ; i ++){
            score[i] = j+500 ;
            j+= 500 ;
        }
      int [] time = new int[5];
      int [] wrong = new int[5];
      int Success , UnSuccess ;
      for(int i = 0 ; i < 5 ; i ++){
          time [i] = input.nextInt() ;
      }
      for(int i = 0 ; i < 5 ; i ++){
          wrong[i] = input.nextInt();
      }
      Success = input.nextInt();
      UnSuccess = input.nextInt();
      int Summation = 0 ;
      for(int i = 0 ; i < 5 ; i ++){
          double X = (double) (.3 * score[i]);
          double Y = ((1-((double)time[i] / 250))*score[i])-(50 * wrong[i]);
          double MAX ;
          
          if(X >= Y){MAX = X;}
          else{MAX = Y;}
          Summation += MAX;
      }
     Summation += (100 *Success);
        Summation-=(50*UnSuccess);
        System.out.print(Summation);

    }
    static class Scanner
    {
        StringTokenizer st;
        BufferedReader br;

        public Scanner(InputStream s){	br = new BufferedReader(new InputStreamReader(s));}

        public Scanner(String s) throws FileNotFoundException{	br = new BufferedReader(new FileReader(s));}

        public String next() throws IOException
        {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        public int nextInt() throws IOException {return Integer.parseInt(next());}

        public long nextLong() throws IOException {return Long.parseLong(next());}

        public String nextLine() throws IOException {return br.readLine();}

        public double nextDouble() throws IOException { return Double.parseDouble(next()); }

        public boolean ready() throws IOException {return br.ready();}
    }
}
