a,b,c,d,e=map(int, raw_input().split())
p,q,x,y,z=map(int, raw_input().split())
h,s=map(int, raw_input().split())
# print 0.3*500 , (250-a)*2 - 50*p
a = max(0.3*500 , (250-a)*2 - 50*p)
b = max(0.3*1000 , (250-b)*4 - 50*q)
c = max(0.3*1500 , (250-c)*6 - 50*x)
d = max(0.3*2000 , (250-d)*8 - 50*y)
e = max(0.3*2500 , (250-e)*10 - 50*z)
print long(a+b+c+d+e+h*100-s*50)