fun main(args: Array<String>) {
    var (X,Y,A,B,C) = readLine()!!.split(" ").map { it.toInt() }
    var p = readLine()!!.split(" ").map { it.toLong() }.sortedDescending().toLongArray()
    var q = readLine()!!.split(" ").map { it.toLong() }.sortedDescending().toLongArray()
    var r = readLine()!!.split(" ").map { it.toLong() }.sortedDescending()
    var pc = X-1
    var qc = Y-1
    for(i in 0 until C){
        if (pc<0 && qc<0)break

        val pa = if(pc>=0)p[pc] else Long.MAX_VALUE
        val qa = if(qc>=0)q[qc] else Long.MAX_VALUE
        if(r[i]>pa || r[i]>qa ){
            if(pa < qa) {
                p[pc] = r[i]
                pc-=1
            }else{
                q[qc] = r[i]
                qc-=1
            }
        }
    }
    var result = 0.toLong()
    for(i in 0 until X){result+=p[i]}
    for(i in 0 until Y){result+=q[i]}
    print(result)
}