import java.util.ArrayList;
import java.util.Scanner;
 
public class Main{
    Scanner sc = new Scanner(System.in);
 
    public static void main(String[] args) {
        new Main(); 
    }
 
    public Main() {
        new test().doIt();
    }
    class test{
        void doIt(){
            int sum = 0;
            int a[] = new int [6];
            for(int i = 1;i <= 5;i++){
                a[i] = (250 - sc.nextInt())*2*i;
            }
            for(int i = 1;i <= 5;i++){
                sum = sum + Math.max(a[i] - 50*sc.nextInt(),3*50*i);
            }
            System.out.println(sum+sc.nextInt()*100-sc.nextInt()*50);
        }
    }
}