import java.awt.geom.AffineTransform;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Solution {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] ms = new int[5];
        int[] ws = new int[5];
        for(int i=0;i<5;i++){
            ms[i]=in.nextInt();
        }
        for(int i=0;i<5;i++){
            ws[i]=in.nextInt();
        }
        int hs=in.nextInt();
        int hu =in.nextInt();
        int[] xs = {500, 1000, 1500, 2000, 2500};
        int total = 0;
        for(int i =0; i<5;i++){
            total+= Math.max(0.3*xs[i], (xs[i]-xs[i]*ms[i]/250)-50*ws[i]);
        }
        total+=hs*100 - 50*hu;
        System.out.println(total);
    }

}