import java.util.*

enum class Color {
    RED, GREEN, NONE
}

fun main() {
    val builder = StringBuilder()

    val (x, y, _, _, _) = readInputLine().split(" ").map { it.toInt() }

    val queue = PriorityQueue<Pair<Long, Color>> { x, y -> y.first.compareTo(x.first) }

    readInputLine().split(" ").forEach {
        queue.add(Pair(it.toLong(), Color.RED))
    }
    readInputLine().split(" ").forEach {
        queue.add(Pair(it.toLong(), Color.GREEN))
    }
    readInputLine().split(" ").forEach {
        queue.add(Pair(it.toLong(), Color.NONE))
    }

    var total = 0
    var red = 0
    var green = 0
    var ans = 0L

    while (total < x + y) {
        val (q, color) = queue.poll()
        when (color) {
            Color.RED -> {
                if (red < x) {
                    red++
                    total++
                    ans += q
                }
            }
            Color.GREEN -> {
                if (green < y) {
                    green++
                    total++
                    ans += q
                }
            }
            Color.NONE -> {
                total++
                ans += q
            }
        }
    }

    builder.appendln(ans)

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
