m=map(int,raw_input().split())
w=map(int,raw_input().split())
sh,uh=map(int,raw_input().split())
ans=0
for i in range(5):
	ans+=max(150*(i+1),(250-m[i])*(2*i+2)-50*w[i])
ans+=(sh*100)
ans-=(uh*50)
print ans