
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 Madi
 */
public class A604 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int[] x = new int[5];
        x[0] = 500;
        x[1] = 1000;
        x[2] = 1500;
        x[3] = 2000;
        x[4] = 2500;
        
        int[] m = new int[5];
        for (int i = 0; i < 5; i++) {
            m[i] = sc.nextInt();
        }
        
        int[] w = new int[5];
        for (int i = 0; i < 5; i++) {
            w[i] = sc.nextInt();
        }
        
        int hs = sc.nextInt();
        int hu = sc.nextInt();
        
        float sum = 0f;
        for (int i = 0; i < 5; i++) {
            sum += find(x[i], m[i], w[i]);
        }
        
        sum += hs * 100 - hu * 50; 
        
        System.out.println((int)sum);
        
    }
    
    private static float find(int x, int m, int w) {
        return Math.max(0.3f * (float)x, (1 - (float)m / 250.0f) * (float)x - 50.0f * (float)w);
    }
}
