/*
 * 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.
 */


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author ironavenger
 */
public class cf {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str[]=br.readLine().split(" ");
        
        
        
        double s1=Integer.parseInt(str[0]);
        double s2=Integer.parseInt(str[1]);
        double s3=Integer.parseInt(str[2]);
        double s4=Integer.parseInt(str[3]);
        double s5=Integer.parseInt(str[4]);
        
        str=br.readLine().split(" ");
        double w1=Integer.parseInt(str[0]);
        double w2=Integer.parseInt(str[1]);
        double w3=Integer.parseInt(str[2]);
        double w4=Integer.parseInt(str[3]);
        double w5=Integer.parseInt(str[4]);
        
        str=br.readLine().split(" ");
        
        int suc=Integer.parseInt(str[0]);
        int unsuc=Integer.parseInt(str[1]);
        double answer=0;
        answer+=Math.max(0.3*500,(((1-(s1/250))*500)-(50*w1)));
        answer+=Math.max(0.3*1000,(((1-(s2/250))*1000)-(50*w2)));
        answer+=Math.max(0.3*1500,(((1-(s3/250))*1500)-(50*w3)));
        answer+=Math.max(0.3*2000,(((1-(s4/250))*2000)-(50*w4)));
        answer+=Math.max(0.3*2500,(((1-(s5/250))*2500)-(50*w5)));
        
        answer+=100*suc;
        answer-=50*unsuc;
        
        System.out.println((int)answer);
      
    }
    
}
