Imports System.Text
Imports System.String
Imports System.Math
Imports System.Array
Imports System.Linq
Imports System
Imports System.Collections.Generic



Module Module1

    Sub Main()
        Dim input As String() = Console.ReadLine.Split(" "c)
        Dim redapples(CInt(input(2)) - 1) As Integer
        Dim greenapples(CInt(input(3)) - 1) As Integer
        Dim nocolorapples(CInt(input(4)) - 1) As Integer

        Dim tempstrary As String() = Console.ReadLine.Split(" "c)

        Dim tempint As Integer = 0
        For Each tempstr As String In tempstrary
            redapples(tempint) = CInt(tempstr)
            tempint = tempint + 1


        Next

        tempstrary = Console.ReadLine.Split(" "c)
        tempint = 0
        For Each tempstr As String In tempstrary
            greenapples(tempint) = CInt(tempstr)
            tempint = tempint + 1

        Next

        tempstrary = Console.ReadLine.Split(" "c)
        tempint = 0
        For Each tempstr As String In tempstrary
            nocolorapples(tempint) = CInt(tempstr)
            tempint = tempint + 1



        Next

        Array.Sort(redapples)
        Array.Sort(greenapples)
        Array.Sort(nocolorapples)

        Dim eatredapples(CInt(input(0)) - 1) As Integer
        Dim eatgreenapples(CInt(input(1)) - 1) As Integer

        Dim temp As Integer = eatredapples.Length - 1
        For a As Integer = redapples.Length - CInt(input(0)) To redapples.Length - 1
            eatredapples(temp) = redapples(a)
            temp = temp - 1
        Next

        temp = eatgreenapples.Length - 1
        For b As Integer = greenapples.Length - CInt(input(1)) To greenapples.Length - 1
            eatgreenapples(temp) = greenapples(b)
            temp = temp - 1
        Next


        Dim eatappleslist As New System.Collections.Generic.List(Of Integer)(eatredapples.Length + eatgreenapples.Length + nocolorapples.Length)

        eatappleslist.AddRange(eatredapples)
        eatappleslist.AddRange(eatgreenapples)
        eatappleslist.AddRange(nocolorapples)

        Dim eatapples As Integer() = eatappleslist.ToArray

        Array.Sort(eatapples)
        Array.Reverse(eatapples)

        Dim ans As Integer = 0
        For k As Integer = 0 To eatredapples.Length + eatgreenapples.Length - 1
            ans = ans + eatapples(k)
        Next

        Console.WriteLine(ans)
        Console.ReadKey()
    End Sub


End Module
