import java.io.*;
import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        short m[] = new short[5];
        short w[] = new short[5];
        short h1, h2;

        for (int i=0; i<5; ++i){
            m[i] = sc.nextShort();
        }

        for (int i=0; i<5; ++i){
            w[i] = sc.nextShort();
        }

        h1 = sc.nextShort();
        h2 = sc.nextShort();

        int res = 0;
        short count = 2;
        for (int i=0; i<5; ++i){
            res = res + (250-m[i])*count - 50*w[i];
            count += 2;
        }
        res = res + h1*100 - h2*50;

        System.out.println(res);
    }

}
