X,Y,A,B,C=io.read("*n","*n","*n","*n","*n")
p,q,r={},{},{}
for i=1,A do p[i]=io.read"*n" end
for i=1,B do q[i]=io.read"*n" end
for i=1,C do r[i]=io.read"*n" end
table.sort(p)
table.sort(q)
table.sort(r)
s={}
for i=1,X do table.insert(s,p[A-i+1]) end
for i=1,Y do table.insert(s,q[B-i+1]) end
for i=1,C do table.insert(s,r[i]) end
table.sort(s)
sum=0
for i=#s,#s-(X+Y)+1,-1 do
	sum=sum+s[i]
end
print(sum)