fun main(args: Array<String>) {
    var (x,y,a,b,c)= readLine()!!.split(' ').map { it.toInt() }
    var p_a= readLine()!!.split(' ').map { it.toLong() }.sortedDescending().toMutableList()
    var p_b= readLine()!!.split(' ').map { it.toLong() }.sortedDescending().toMutableList()
    var p_c= readLine()!!.split(' ').map { it.toLong() }.sortedDescending().toMutableList()
    p_a=p_a.subList(0, x)
    p_b=p_b.subList(0, y)
    p_c=p_c.plus(p_a).plus(p_b).sortedDescending().subList(0, x+y).toMutableList()
    println(p_c.sum())
}