
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.
// */
////package contest.pkg1;
//
//import java.util.Scanner;
//
///**
// *
// * @author Wired
// */
public class Uncowed{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       Scanner reader = new Scanner(System.in);  
        double s1 =0;
        int array[]= new int[5];
        for (int i = 0; i < 5; i++) {
            int m = reader.nextInt();
         }
       
        for (int i = 0; i < 5; i++) {
            int w = reader.nextInt();
            int s = (int) ((1 - (array[i]/250.0)) * 500 * (i+1));
            s -= 50 * w;
                      
            s1+=s;
            
        }
        s1+= reader.nextInt() * 100;
        s1-= reader.nextInt() * 50;
        
       System.out.println((int)s1);
    }
}
