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