#!/usr/bin/python3
from fractions import *
X = [500, 1000, 1500, 2000, 2500]
M = [int(x) for x in input().strip().split()]
W = [int(x) for x in input().strip().split()]
A,B = [int(x) for x in input().strip().split()]
total = 0
for x in range(5):
	total += max(Fraction(3,10)*X[x],(1-Fraction(M[x],250))*X[x] - 50*W[x])

total += A*100 - B*50
print(total)
