fun main(args: Array<String>) {
    var (x, y, a, b, c) = readLine()!!.split(" ").map{it.toInt()}
    var p = readLine()!!.split(" ").map{it.toLong()}
    var q = readLine()!!.split(" ").map{it.toLong()}
    var r = readLine()!!.split(" ").map{it.toLong()}
    var apple = (p.sortedBy{it*-1}.slice(0..x-1) + q.sortedBy{it*-1}.slice(0..y-1) + r).sortedBy{it*-1}.slice(0..(x+y-1))
    println(apple.sum())
}
