import java.util.*

fun main(A: Array<String>) {
    val (x, y, a, b, c) = readLine()!!.split(" ").map { it.toInt() }
    val p = readLine()!!.split(" ").map { it.toLong() }.sorted().takeLast(x).toCollection(java.util.PriorityQueue<Long>())
    val q = readLine()!!.split(" ").map { it.toLong() }.sorted().takeLast(y).toCollection(java.util.PriorityQueue<Long>())
    val r = readLine()!!.split(" ").map { it.toLong() }

    for (i in r) {
        val t = if (p.peek()!! < q.peek()!!) p else q
        if (t.peek()!! < i) {
            t.poll()
            t.add(i)
        }
    }
    println(p.sum() + q.sum())
}
