local x, y = io.read("*n", "*n")
local a, b, c = io.read("*n", "*n", "*n", "*l")
local p = {}
local s = io.read()
for w in s:gmatch("%d+") do
  table.insert(p, tonumber(w))
end
s = io.read()
for w in s:gmatch("%d+") do
  table.insert(p, tonumber(w))
end
s = io.read()
for w in s:gmatch("%d+") do
  table.insert(p, tonumber(w))
end
local t = {}
for i = 1, a + b + c do
  t[i] = i
end
table.sort(t, function(f, g) return p[f] > p[g] end)
local ret = 0
local use_x = 0
local use_y = 0
local total = 0
for i = 1, a + b + c do
  local z = t[i]
  if z <= a then
    if use_x < x then
      use_x = use_x + 1
      total = total + 1
      ret = ret + p[z]
    end
  elseif z <= a + b then
    if use_y < y then
      use_y = use_y + 1
      total = total + 1
      ret = ret + p[z]
    end
  else
    total = total + 1
    ret = ret + p[z]
  end
  if total == x + y then break end
end
print(ret)
