import java.util.*;
public class Korofoces
{
public static void main(String[] args)
{
 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 isTrue = sc.nextInt();
 int isFalse = sc.nextInt();
 double res1 = (double)Math.max(0.3*500,(1 - (m1/250))*500-(50*w1));
 double res2 = (double)Math.max(0.3*1000,(1-(m2/250))*1000-(50*w2));
 double res3 = (double)Math.max(0.3*1500,(1-(m3/250))*1500-(50*w3));
 double res4 = (double)Math.max(0.3*2000,(1-(m4/250))*2000-(50*w4));
 double res5 = (double)Math.max(0.3*2500,(1-(m5/250))*2500-(50*w5));
 double sum = res1 + res2 + res3 + res4 + res5;
 double ans = (double)sum + (100*isTrue);
 ans = (double)ans - (50*isFalse);
 System.out.println((int)ans);
}
}