local x,y,a,b,c=io.read("n","n","n","n","n")
local A,B={},{}
local t={}

for i=1,a do
    A[i]=io.read("n")
end
table.sort(A,function(a,b)
    return a>b
end)
for i=1,x do
    table.insert(t,A[i])
end

for i=1,b do
    B[i]=io.read("n")
end
table.sort(B,function(a,b)
    return a>b
end)
for i=1,y do
    table.insert(t,B[i])
end

for i=1,c do
    table.insert(t,io.read("n"))
end
table.sort(t,function(a,b)
    return a>b
end)

local max=0
for i=1,x+y do
    max=max+t[i]
end
print(max)