import java.util.Scanner;

public class ufor
{
public static void main(String args[])
{
Scanner s = new Scanner(System.in);
int[] submission = new int[5];
for (int i=0;i<5;i++)
submission[i] = s.nextInt();

int[] wrongs = new int[5];
for (int i=0;i<5;i++)
wrongs[i] = s.nextInt();

int[] hacks = new int[2];

for(int i=0;i<2;i++)
hacks[i] = s.nextInt();

//input ready
int finalscore =0;
for(int i=0;i<5;i++)
{
finalscore+= Math.max(0.3*500*(i+1),(250-submission[i])*2*(i+1)-50*wrongs[i]);
}
finalscore+= hacks[0]*100-hacks[1]*50;

System.out.println(finalscore);

}
}