import java.awt.*;
import java.awt.geom.Line2D;
import java.io.*;
import java.math.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributeView;
import java.nio.file.attribute.FileTime;
import java.util.*;
import java.util.List;


public class Main implements Runnable {
    
    int maxn = (int)2e5+111;
    int mod = (int)1e9+7;
    int inf = (int)1e9;
    int n,m,k;
    int a[] = new int[maxn];
    int b[] = new int[maxn];
    int c[] = new int[maxn];
    ArrayList<Integer> list = new ArrayList<Integer>();
    
    void solve() throws Exception {
        long sum = 0;
        n = 5;
        
        for (int i=1; i<=n; i++) {
            a[i] = in.nextInt();
        }
        
        for (int i=1; i<=n; i++) {
            b[i] = in.nextInt();
        }
        
        int c[] = {500,1000,1500,2000,2500};
        
        for (int i=1; i<=n; i++) {
            sum+=getVal(a[i],b[i],c[i-1]);
        }
        
        int hs = in.nextInt();
        int hw = in.nextInt();
        
        sum+=(hs*100);
        sum-=(hw*50);
        out.println(sum);
    }  
    
    private long getVal(int m, int w, int x) {
        double left = 0.3*x;
        double right = x-(x*m)/250-50*w;
        return (long)Math.max(left,right);
    }

    class Pair implements Comparable<Pair>{
        int x,y; 
        public Pair (int x, int y) {
            this.x = x;
            this.y = y;
        }

        @Override
        public int compareTo(Pair p) {
            if (x>p.x) return 1;
            else if (x==p.x) {
                if (y>p.y) return 1;
                else if (y==p.y) return 0;
                else return -1;
            } else {
                return -1;
            }
        
        }
    }

    String fileInName = "network";
    boolean file = false;
    boolean isAcmp = true;
    
    static Throwable throwable;
    public static void main (String [] args) throws Throwable {
        Thread thread = new Thread(null, new Main(), "", (1 << 26));
        thread.start();
        thread.join();
        thread.run();
        if (throwable != null)
            throw throwable;
    }
    
    FastReader in;
    PrintWriter out;

    public void run() {
        String fileIn = "input.txt";
        String fileOut = "output.txt";
        
        try {
            if (isAcmp) {
                if (file) {
                    in = new FastReader(new BufferedReader(new FileReader(fileIn)));
                    out = new PrintWriter (fileOut);
                } else {
                    in = new FastReader(new BufferedReader(new InputStreamReader(System.in)));
                    out = new PrintWriter(System.out);
                }
            } else if (file) {
                in = new FastReader(new BufferedReader(new FileReader(fileInName+".in")));
                out = new PrintWriter (fileInName + ".out");
            } else {
                in = new FastReader(new BufferedReader(new InputStreamReader(System.in)));
                out = new PrintWriter(System.out);
            }
            
            solve();
        } catch(Exception e) {
            throwable = e;
        } finally {
            out.close();
        }

    }
}

class FastReader {
    BufferedReader bf;
    StringTokenizer tk = null;

    public FastReader(BufferedReader bf) {
        this.bf = bf;
    }
    
    public String nextToken () throws Exception {
        if (tk==null || !tk.hasMoreTokens()) {
            tk = new StringTokenizer(bf.readLine());
        }
        if (!tk.hasMoreTokens()) return nextToken();
        else 
            return tk.nextToken();
    }
    
    public int nextInt() throws Exception {
        return Integer.parseInt(nextToken());
    }
    
    public long nextLong() throws Exception {
        return Long.parseLong(nextToken());
    }
    
    public double nextDouble() throws Exception {
        return Double.parseDouble(nextToken());
    }
}