n=5
s = [500, 1000, 1500, 2000, 2500]
m = []
ln = input('').split(' ')
for i in range(n):
    m.append((int)(ln[i]))
w = []
ln = input('').split(' ')
for i in range(n):
    w.append(int(ln[i]))
ans = 0
sh, uh = [int(z) for z in input('').split()]
for i in range(n):
    v1 = 0.3*s[i]
    v2 = s[i] - (m[i]*s[i])/250 - 50*w[i]
    ans+=max(v1,v2)
ans+=(sh*100-uh*50)
print((int)(ans))
