
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Ivan
 */
public class firstProblem {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        FastReader sc=new FastReader(System.in);
        int[] values={500, 1000, 1500, 2000, 2500};
        int[] times=new int[5];
        for(int i=0;i<5;i++)
            times[i]=sc.nextInt();
        int[] wrongs=new int[5];
        for(int i=0;i<5;i++)
            wrongs[i]=sc.nextInt();
        int successful=sc.nextInt();
        int unsuccessful=sc.nextInt();
        long res=0;
        for(int i=0;i<5;i++)
            res+=Math.max((values[i]*3)/10, ((double)(1-(double)times[i]/250)*values[i])-50*wrongs[i]);
        res+=successful*100;
        res-=unsuccessful*50;
        System.out.println((int)res);
    }
    
}

class FastReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;
 
        public FastReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }
 
        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }
        
        public int nextInt() throws IOException{
            return Integer.parseInt(next());
        }
         public long nextL() throws IOException{
            return Long.parseLong(next());
        }
    }