
import java.util.Scanner;

/*
 * 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 Dell
 */
public class NewMain54 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner s = new Scanner(System.in);
        int[] x = {500, 1000, 1500, 2000, 2500};
        int[] m = new int[5];
        for (int i = 0; i < 5; i++) {
            m[i] = s.nextInt();
        }
        int[] w = new int[5];
        for (int i = 0; i < 5; i++) {
            w[i] = s.nextInt();
        }
        int suc = s.nextInt();
        int wrong = s.nextInt();
        double ans = 0;
        for (int i = 0; i < 5; i++) {
            ans += Math.max(x[i] * 0.3, (1 - (m[i] / 250.0)) * x[i] - (50 * (w[i])));
        }

        ans += suc * 100;
        ans -= wrong * 50;

        System.out.println((int)ans);
    }

}
