time=raw_input().split()
wrong=raw_input().split()
hacks=raw_input().split()
score=0
for i in range(1,6,1):
	score=score+max(150*i,((250-int(time[i-1]))*2*i-50*int(wrong[i-1])))

score=score+(100*int(hacks[0]))-(50*int(hacks[1]))
print score