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