import java.io.*;
import java.util.*;
import java.lang.*;


public class A {

public static void main(String[] args) {
        
        MyScanner sc = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int[] x= {500,1000,1500,2000,2500};
        int[] m = new int[5];
        int[] w = new int[5];
        int hs  = 0 , hf = 0;
        int totalValue = 0;
        for (int i = 0; i < w.length; i++) {
            m[i] = sc.nextInt();
        }
        for (int i = 0; i < w.length; i++) {
            w[i] = sc.nextInt();
        }
        hs = sc.nextInt() ;
        hf = sc.nextInt();
        
        for (int i = 0; i < w.length; i++) {
            int v = x[i] - (x[i]/250) * m[i] - 50 * w[i];
            int xx = (3*x[i]) / 10;
            totalValue += Math.max(v, xx);
        }
        totalValue += (hs * 100);
        totalValue -= (hf*50);
        out.println(totalValue);
        out.close();
        
    }
    
    
    public static PrintWriter out;
       
    public static class MyScanner {
          BufferedReader br;
          StringTokenizer st;
     
          public MyScanner() {
             br = new BufferedReader(new InputStreamReader(System.in));
          }
     
          String next() {
              while (st == null || !st.hasMoreElements()) {
                  try {
                      st = new StringTokenizer(br.readLine());
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
              return st.nextToken();
          }
     
          int nextInt() {
              return Integer.parseInt(next());
          }
     
          long nextLong() {
              return Long.parseLong(next());
          }
     
          double nextDouble() {
              return Double.parseDouble(next());
          }
     
          String nextLine(){
              String str = "";
          try {
             str = br.readLine();
          } catch (IOException e) {
             e.printStackTrace();
          }
          return str;
          }

       }


}
