'''input
119 119 119 119 119
0 0 0 0 0
10 0
'''
X = [500, 1000, 1500, 2000, 2500]
M = map(int, raw_input().split())
W = map(int, raw_input().split())
H = map(int, raw_input().split())

ans = 0
for i in xrange(len(M)):
	# print W[i], (1 - M[i]/250.0), (1- M[i]/250) * X[i]
	ans += max(0.3 * X[i], (1 - M[i]/250.0) * X[i] - 50 * W[i])

print int(ans) + 100 * H[0] - 50 * H[1]
