import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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.Map;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.Vector;
import javafx.util.Pair;

/**
 *
 * @author Ahmad
 */
public class JavaApplication1 {

    /**
     * @param <error>
     * @param args the command line arguments
     */
    public static void main (String[] args) throws IOException, Exception {
       FastReader console = new FastReader();
       double x[] = new double[5] ;
       double y[] = new double[5] ;
       int s[] = new int[2] ;
       for (int i=0 ; i<x.length ; i++){
           x[i]=console.nextInt() ; 
       }
       for (int i=0 ; i<y.length ; i++){
           y[i]=console.nextInt() ; 
       }
       s[0]=console.nextInt() ; 
       s[1]=console.nextInt() ;
       int sum=0 ;
       int count = 500 ; 
       for (int i=0 ; i<x.length ; i++){
           double way1 = (0.3)*count ; 
           double way2 = ((1-(x[i]/250.0))*count-(50*y[i])) ;
           double max = Math.max(way1, way2) ; 
           sum+=max ;
           count+=500 ;
       }
       sum+=s[0]*100 ;
       sum-=s[1]*50 ;
        System.out.println(sum);
    }
}
class FastReader {

    BufferedReader br;
    StringTokenizer st;

    public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }
    String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

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

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

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

    String nextLine() {
        String str = "";
        try {
            str = br.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return str;
    }
}
