fun main(args: Array<String>) {
    val (x, y, a, b, c) = readLine()!!.split(" ").map { it.toInt() }
    val aList = readLine()!!.split(" ").map { it.toInt() }.sortedDescending()
    val bList = readLine()!!.split(" ").map { it.toInt() }.sortedDescending()
    val cList = readLine()!!.split(" ").map { it.toInt() }.sortedDescending()

    var result = 0L
    var i = 0
    var j = 0
    var k = 0
    while (i + j + k < x + y) {
        val n1 = if (i < a) aList[i] else -1
        val n2 = if (j < b) bList[j] else -1
        val n3 = if (k < c) cList[k] else -1

        if (n1 >= n2 && n1 >= n3 && i < x) {
            result += n1
            i++
        } else if (n2 >= n1 && n2 >= n3 && j < y) {
            result += n2
            j++
        } else if (n3 >= n1 && n3 >= n2) {
            result += n3
            k++
        } else if (j == y && i < x && n1 >= n3) {
            result += n1
            i++
        } else if (i == x && j < y && n2 >= n3) {
            result += n2
            j++
        } else {
            result += n3
            k++
        }
    }

    println(result)
}