import java.util.*;
public class Main
{
public static void main(String args[])
    {
        Scanner in = new Scanner(System.in);
      int m[] = new int[5];
      int w[] = new int[5];
      for(int i=0 ; i<5 ; i++) m[i] = in.nextInt();
      for(int i=0 ; i<5 ; i++) w[i] = in.nextInt();
      int hs = in.nextInt();
      int hu = in.nextInt();
      int p=500;
      long ans=0;
      for(int i=0 ; i<5 ; i++)
      {
          ans+=Math.max((int)0.3*(500*(i+1)),(500*(i+1))-(2*(i+1))*m[i]-50*w[i]);
      }
      System.out.println(ans+hs*100-hu*50);
    }
}