import java.util.*;
public class c
{
    public static void main(String[] args) throws Exception
    {
       Scanner sc=new Scanner(System.in);
       int m1=sc.nextInt();
       int m2=sc.nextInt();
       int m3=sc.nextInt();
       int m4=sc.nextInt();
       int m5=sc.nextInt();
       int w1=sc.nextInt();
       int w2=sc.nextInt();
       int w3=sc.nextInt();
       int w4=sc.nextInt();
       int w5=sc.nextInt();
       int hs=sc.nextInt();
       int hu=sc.nextInt();
       int ma1=Math.max(150,(500-(m1*2)-(50*w1)));
       int ma2=Math.max(150,(1000-(m2*4)-(50*w2)));
       int ma3=Math.max(150,(1500-(m3*6)-(50*w3)));
       int ma4=Math.max(150,(2000-(m4*8)-(50*w4)));
       int ma5=Math.max(150,(2500-(m5*10)-(50*w5)));
       int total=ma1+ma2+ma3+ma4+ma5+(hs*100)-(hu*50);
       System.out.println(total);
    }
}