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