x = [i for i in range(500, 3000, 500)]
m = list(map(int, input().split()))
w = list(map(int, input().split()))
ans = 0
i = 0
while i < len(x):
    ans += max(0.3 * x[i], (1 - m[i] / 250) * x[i] - 50 * w[i])
    i += 1
    
cntg, cntb = map(int, input().split())
ans += (cntg * 100 - cntb * 50)
print(int(ans))