open System

let readInts () = stdin.ReadLine().Split(' ') |> Array.map int

[<EntryPoint>]
let main argv =
    let [|x; y; _; _; _|] = readInts()
    let p = readInts() |> Array.sortDescending |> Array.take x
    let q = readInts() |> Array.sortDescending |> Array.take y
    let r = readInts()
    Array.concat [|p;q;r|] |> Array.sortDescending |> Array.take (x+y) |> Array.sum
    |> printfn "%i"
    0
