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

    public static void main(String[] args) {
        FastScanner ss=new FastScanner();
        int []time=new int[5];
        int []wrong=new int[5];
        for (int i = 0; i < 5; i++)
        {
            time[i]=ss.nextInt();
        }
        for(int i=0;i<5;i++)
        {
            wrong[i]=ss.nextInt();
        }
        int s=ss.nextInt();
        int u=ss.nextInt();
        double result=0;
        for(int i=0;i<5;i++)
        {
            result+=Math.max(0.3*500*(i+1),(1-(double)time[i]/250.0)*500.0*(i+1)-50.0*(double)wrong[i]);
        }
        result=result+(double)s*100.0;
        result=result-(double)u*50;
        System.out.println((int)result);
    }

}
class FastScanner {
    BufferedReader br;
    StringTokenizer st;

    public FastScanner(String s) {
        try {
            br = new BufferedReader(new FileReader(s));
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public FastScanner() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    String nextToken() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

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

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

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