import java.util.Scanner;
import java.io.*;
import java.util.*;
import java.math.*;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;

public class A {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        //int n = scanner.nextInt();
        int[] arr = new int[5];
        int[] w= new int[5]; 
        int hU = 0, hN =0;
        for(int i = 0;i<5;i++) {
          arr[i] = scanner.nextInt();
         }
        for(int i = 0;i<5;i++) {
          w[i] = scanner.nextInt();
         }
        hU = scanner.nextInt();
        hN = scanner.nextInt();

        long sum = 100*hU - 50*hN;
        for(int i = 1;i<=5;i++) {
            sum+=Math.max(150*i, 500*i - 2*arr[i-1]*i - 50*w[i-1]);
        }
        System.out.println(sum);
        scanner.close();
    }


    static StreamTokenizer in;
    static PrintWriter out;

    static int nextInt() throws IOException {
        in.nextToken();
        return ( int ) in.nval;
    }
}