import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)

    val (x, y , a, b, c) = sc.nextLine().split(" ").map { it.toInt() }
    val p: List<Long> = sc.nextLine().split(" ").map { it.toLong() }.sortedDescending().subList(0, x)
    val q: List<Long> = sc.nextLine().split(" ").map { it.toLong() }.sortedDescending().subList(0, y)
    val r: List<Long> = sc.nextLine().split(" ").map { it.toLong() }.sortedDescending()

    println(listOf(p, q, r).flatten().sortedDescending().subList(0, x+y).sum())
}