import java.util.Scanner;
import java.util.Vector;

public class Contest {
    public static void main(String[] args) {
        Vector<Double> x = new Vector<Double>();
        Vector<Double> y = new Vector<Double>();
        Vector<Double> z = new Vector<Double>();
        z.add(500.0);
        z.add(1000.0);
        z.add(1500.0);
        z.add(2000.0);
        z.add(2500.0);
        Double s, u, sc = 0.00;
        Scanner in = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            x.add(in.nextDouble());
        }
        for (int i = 0; i < 5; i++) {
            y.add(in.nextDouble());
        }
        s = in.nextDouble();
        u = in.nextDouble();
        for (int i = 0; i < 5.0; i++) {
            Double p = 0.3 * z.get(i);
            Double o = (1.0 - (x.get(i) / 250.0)) * z.get(i);
            Double k = 50.0 * y.get(i);
            sc += Math.max(p, o - k);
        }
        sc += 100.0 * s;
        sc -= 50.0 * u;
        System.out.println(sc);
    }
}
