import java.util.*;
import java.io.*;
public class Main {
    public static void main(String args[]){
        //Scanner s= new Scanner(System.in);
         InputReader s= new InputReader(System.in);
         OutputStream outputStream= System.out;
         PrintWriter out= new PrintWriter(outputStream);
         
        int m1=s.nextInt();
        int m2=s.nextInt();
        int m3=s.nextInt();
        int m4=s.nextInt();
        int m5=s.nextInt();
        int w1=s.nextInt();
        int w2=s.nextInt();
        int w3=s.nextInt();
        int w4=s.nextInt();
        int w5=s.nextInt();
        int hs=s.nextInt();
        int hu=s.nextInt();
        int h1=hs*100;
        int h2=hu*50;
        int s1=Math.max(3*500/10, 500-m1*2-50*w1);
        int s2=Math.max(3*1000/10,1000-m2*4-50*w2);
        int s3=Math.max(3*1500/10, 1500-m3*6-50*w3);
        int s4=Math.max(3*2000/10, 2000-m4*8-50*w4);
        int s5=Math.max(3*2500/10, 2500-m5*10-50*w5);
        out.println(s1+s2+s3+s4+s5+h1-h2);
         out.close();
         
    }
    
    static class InputReader {
        
        public BufferedReader reader;
        public StringTokenizer tokenizer;
 
        public InputReader(InputStream inputstream) {
          reader = new BufferedReader(new InputStreamReader(inputstream));
          tokenizer = null;
        }
        
        public String nextLine(){
            String fullLine=null;
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                  fullLine=reader.readLine();
                } catch (IOException e) {
                  throw new RuntimeException(e);
                }
                return fullLine;
              }
              return fullLine;
        }
        public String next() {
          while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
              tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
              throw new RuntimeException(e);
            }
          }
          return tokenizer.nextToken();
        }
        public long nextLong() {
              return Long.parseLong(next());
            }
        public int nextInt() {
          return Integer.parseInt(next());
        }
      }
}
