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

public class CF604A{ 
  static int a, b ,c, min = 0, max = 100000;
  public static void main(String[] args)throws IOException, Exception {
    InputReader in = new InputReader(System.in);
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out));
    int [] m = new int[5], w = new int[5], h = new int[2];
    int[] p = { 500, 1000, 1500, 2000,  2500};
    int x  = 0;
    for(int i = 0; i < 5; i++){
      m[i] = in.nextInt();
      if(m[i] != 0) x++;
    }
    for(int i = 0; i < 5; i++){
      w[i] = in.nextInt();
    }
    for(int i = 0; i < 2; i++){
      h[i] = in.nextInt();
    }
    double sum = 0;
    for(int i = 0; i < 5; i++){
     // sum+=  Math.max(0.3*p[i], 1.0 - (m[i]/250.0)*p[i] - 50*w[i]);
      double temp = (1.0 - (m[i]/250.0))*p[i] - w[i]*50;
      sum+= Math.max(temp, 0.3*p[i]);
    }
    sum+=h[0]*100;
    sum-=h[1]*50;
    pw.println((long)sum);
    pw.close();
  }
  
  
  static class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;
    
    public InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream));
      tokenizer = null;
    }
    
    public String next() {
      try {
        while (tokenizer == null || !tokenizer.hasMoreTokens())
          tokenizer = new StringTokenizer(reader.readLine());
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
      
      return tokenizer.nextToken();
    }
    
    public String nextLine() {
      String line = null;
      try {
        tokenizer = null;
        line =  reader.readLine();
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
      return line;
    }
    
    public int nextInt() {
      return Integer.parseInt(next());
    }
    
    public double nextDouble() {
      return Double.parseDouble(next());
    }
    
    public long nextLong() {
      return Long.parseLong(next());
    }
  }
}