import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class A {
  FastScanner in;
  PrintWriter out;

  public void run() {
    try {
      in = new FastScanner(new InputStreamReader(System.in));
      out = new PrintWriter(System.out);
      solve();
      out.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public void solve() throws IOException {
    int n = 5;
    double [] x = {500, 1000, 1500, 2000, 2500};
    double [] m = new double[n];
    double [] w = new double[n];
    double h1;
    double h2;
    for (int i=0; i<n; i++) {
      m[i] = (double)in.nextInt();
    }
    for (int i=0; i<n; i++) {
      w[i] = (double)in.nextInt();
    }
    
    h1 = (double)in.nextInt();
    h2 = (double)in.nextInt();
    double sum = 0;
    for (int i=0; i<n; i++) {
      sum += Math.max(0.3*x[i], (1 - m[i]/250)*x[i] - 50*w[i]);
    }
    sum += 100 * h1;
    sum -= 50 * h2;
    
    out.println((int)sum);
  }

  class FastScanner {
    BufferedReader br;
    StringTokenizer st;

    FastScanner(InputStreamReader in) {
      br = new BufferedReader(in);
    }

    String nextLine() {
      String str = null;
      try {
        str = br.readLine();
      } catch (IOException e) {
        e.printStackTrace();
      }

      return str;
    }

    String next() {
      while (st == null || !st.hasMoreTokens()) {
        try {
          st = new StringTokenizer(br.readLine());
        } catch (IOException e) {
          e.printStackTrace();
        }
      }
      return st.nextToken();
    }

    int nextInt() {
      return Integer.parseInt(next());
    }
  }

  public static void main(String[] arg) {
    A o = new A();
    o.run();
  }

}