ans = 0
m = [int(x) for x in raw_input().split()]
w = [int(x) for x in raw_input().split()]
h1,h2 = [int(x) for x in raw_input().split()]
for i in xrange(5):
    v1 = (3*500*(i+1))/10
    v2 = (((250-m[i])*(500*(i+1)))/250)  - 50*w[i]
    s1 = max(v1,v2)
    ans += s1
ans -= (50*h2)
ans += (100*h1)
print ans