m = list(map(int, input().split()))
w = list(map(int, input().split()))
hs, hu = map(int, input().split())

print(sum(max(150 * (i + 1), ((i + 1) * 500 - m[i] * (i + 1) * 2) - 50 * w[i]) for i in range(5)) + hs * 100 - hu * 50)
