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

public class CF604A {
    public static void main(String[] args) {
        FastReader input = new FastReader();
        PrintWriter pw = new PrintWriter(System.out);

        int p1 = 500;
        int p2 = 1000;
        int p3 = 1500;
        int p4 = 2000;
        int p5 = 2500;

        int t1 = input.nextInt();
        int t2 = input.nextInt();
        int t3 = input.nextInt();
        int t4 = input.nextInt();
        int t5 = input.nextInt();


        int w1 = input.nextInt();
        int w2 = input.nextInt();
        int w3 = input.nextInt();
        int w4 = input.nextInt();
        int w5 = input.nextInt();

        int Sh = input.nextInt();
        int Uh = input.nextInt();


        int m1 = (int)(((3 * p1)/10) + 0.5);
        int m2 = (int)(((3 * p2)/10) + 0.5);
        int m3 = (int)(((3 * p3)/10) + 0.5);
        int m4 = (int)(((3 * p4)/10) + 0.5);
        int m5 = (int)(((3 * p5)/10) + 0.5);


        int x1 = p1 - (int)(((t1 * p1)/250) + 0.5) - (50 * w1);
        int x2 = p2 - (int)(((t2 * p2)/250) + 0.5) - (50 * w2);

        int x3 = p3 - (int)(((t3 * p3)/250) + 0.5) - (50 * w3);

        int x4 = p4 - (int)(((t4 * p4)/250) + 0.5) - (50 * w4);

        int x5 = p5 - (int)(((t5 * p5)/250) + 0.5) - (50 * w5);

        int score1 = Math.max(m1,x1);
        int score2 = Math.max(m2,x2);
        int score3 = Math.max(m3,x3);
        int score4 = Math.max(m4,x4);
        int score5 = Math.max(m5,x5);

        int ans = score1 + score2 + score3 + score4 + score5;

        ans += (Sh * 100);
        ans -= (Uh * 50);

        pw.println(ans);






        pw.flush();
        pw.close();
    }
    static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            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;
        }
    }
}
