import java.util.Scanner;

public class UncowedForces
{
  public static void main(String args[])
  {
    Scanner input = new Scanner(System.in);
    double[] m = new double[5];
    double[] x = new double[5];
    double[] w = new double[5];
    double[] hacks = new double[2];
    x[0] = 500.00;
    x[1] = 1000.00;
    x[2] = 1500.00;
    x[3] = 2000.00;
    x[4] = 2500.00;
    for(int i=0;i<5;i++)
      m[i] = (double) (input.nextInt());
    for(int i=0;i<5;i++)
      w[i] = (double) (input.nextInt());
    hacks[0] = (double) (input.nextInt());
    hacks[1] = (double) (input.nextInt());

    double total = 0;
    for(int i=0;i<5;i++)
    {
      total += max(x[i],m[i],w[i]);
    }
    total = total + (hacks[0]*100) - (hacks[1]*50);
    System.out.printf("%.0f\n",total);
  }

  public static double max(double x1,double m1,double w1)
  {
    double score1;
    double score2;
    score1 = 0.3 * x1;
    score2 = ((1-(m1/250))*x1) - (50*w1);
    return (score1>score2)?score1:score2;
  }
}
