import java.util.*;
public class Main {
    static char E[],S[];
    static int n,len;

    public static void main (String []args)  {
    Scanner s =new Scanner (System.in);

   int arr[] = {500,1000,1500,2000,2500};
    len = arr.length;
    int m[] = new int[len];
    for (int i=0;i<len;i++)
        m[i]=s.nextInt();
    int w[] = new int[len];

    for (int i=0;i<len;i++)
        w[i]=s.nextInt();
    int ans=0;
    for (int i=0;i<len;i++) 
ans+=Math.max(0.3*arr[i], (1.0-(1.0*m[i]/250.0))*arr[i]-50*w[i]);
    int suc=s.nextInt()*100;
    ans+=suc;
    int unsuc=s.nextInt()*50;
    ans-=unsuc;
    System.out.println(ans);
    s.close();
    }

    }