fun main(args: Array<String>) {
    val (x, y, a, b, c) = readLine()!!.split(" ").map{it.toInt()}
    val p = LongArray(a)
    var q = LongArray(b)
    val r = LongArray(c)
    var index = 0
    for (i in readLine()!!.split(" ")) {
        p[index] = i.toLong()
        index ++
    }
    index = 0
    for (i in readLine()!!.split(" ")) {
        q[index] = i.toLong()
        index ++
    }
    index = 0
    for (i in readLine()!!.split(" ")) {
        r[index] = i.toLong()
        index ++
    }
    val aa = p.sortedDescending().take(x).toLongArray()
    val bb = q.sortedDescending().take(y).toLongArray()
    val apple = ( aa + bb + r).sortedDescending().take(x+y)
    var ans = 0L
    repeat(x+y){ans += apple[it]}
    println(ans)
}
