
//package keven;
import java.util.Scanner;
public class Keven {
    public static void main(String[] args) {
    double s=0.0;
    double sum=0.0;
        int x,w,h;
    double  hacks = 0;
        w=h=0;
        x=500;
        int time[]=new int[5];
         int wrong[]=new int[5];
          int hack[]=new int[2];
    Scanner input=new Scanner(System.in);
    //   System.out.println("plz enter rong time");
    for(int i=0;i<5;i++){
    time[i] = input.nextInt();
    
    } 
   // System.out.println("plz enter rong ans");
    for(int i=0;i<5;i++){
    wrong[i] = input.nextInt();
    
    }  
    //System.out.println("plz enter rong hack");
     for(int i=0;i<2;i++){
  hack[i] = input.nextInt();
    
    }
     for (int j=0;j<5;j++){
 
      s=((1.0-time[j]*1.0/250)*x-(50*wrong[j]));
      double l=s>0.3*x?s:0.3*x;

x=x+500;
sum=sum+l;

}double nsum=0;
     for(int z=0;z<2;z++){
    hacks =hack[z]*100;
    nsum=nsum+hacks;
    //System.out.println(hacks);
    
}
sum=sum+nsum;
    
   System.out.println(sum);
    
}}
