m=map(int,raw_input().split())
w=map(int,raw_input().split())
s,u=map(int,raw_input().split())
ans=chk=0
l=[500,1000,1500,2000,2500]
for a,i in enumerate(l):
    ans+=max((i*(250-m[a]))/250-(w[a]*50),3*i/10)
print ans+100*s+(-50*u)