# coding=utf-8

if __name__ == '__main__':
	line_m = str(input()).split()
	line_m = [int(it) for it in line_m]
	line_w = str(input()).split()
	line_w = [int(it) for it in line_w]
	h_s, h_u = str(input()).split()
	h_s = int(h_s)
	h_u = int(h_u)
	base = 0
	for i in range(5):
		base += max(150 * (i + 1), (500 - 2 * line_m[i]) * (i + 1) - 50 * line_w[i])
	print(base + 100 * h_s - 50 * h_u)
