/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Ideone
{
    public static void main (String[] args) throws java.lang.Exception
    {
        Scanner sc = new Scanner(System.in);
        int m1 = sc.nextInt();
        int m2 = sc.nextInt();
        int m3 = sc.nextInt();
        int m4 = sc.nextInt();
        int m5 = sc.nextInt();
        int w1 = sc.nextInt();
        int w2 = sc.nextInt();
        int w3 = sc.nextInt();
        int w4 = sc.nextInt();
        int w5 = sc.nextInt();
        int hs = sc.nextInt();
        int hu = sc.nextInt();
        int s1 = (500 - 2*m1) - w1*50;
        int s2 = (1000 - 4*m2) - w2*50;
        int s3 = (1500 - 6*m3) - w3*50;
        int s4 = (2000 - 8*m4) - w4*50;
        int s5 = (2500 - 10*m5) - w5*50;
        int ss1 = 150;
        int ss2 = 300;
        int ss3 = 450;
        int ss4 = 600;
        int ss5 = 750;
        if (ss1>s1){
            s1 = ss1;
        }
        if (ss2>s2){
            s2 = ss2;
        }
        if (ss3>s3){
            s3 = ss3;
        }
        if (ss4>s4){
            s4 = ss4;
        }
        if (ss5>s5){
            s5 = ss5;
        }
        int FinalScore = s1+s2+s3+s4+s5+(100*hs)-(50*hu);
        System.out.println(FinalScore);
    }
}