def main():

    x, y, a, b, c = list(map(int, input().split()))

    al = sorted(list(map(int, input().split())), reverse=True)[:x]

    bl = sorted(list(map(int, input().split())), reverse=True)[:y]

    cl = sorted(list(map(int, input().split())), reverse=True)

    ans = 0

    xi, yi = 0, 0

    for i in cl:

        if al:

            ai = al[-1]

        else:

            ai = 10000000000

        if bl:

            bi = bl[-1]

        else:

            bi = 10000000000

        if ai < bi:

            if al:

                m = al.pop()

            else:

                m = 0

        else:

            if bl:

                m = bl.pop()

            else:

                m = 0

                

        if m < i:

            ans += i

        else:

            ans += m

            break

    ans += sum(al)+sum(bl)

    print(ans)



if __name__ == "__main__":

    main()
def main():

    x, y, a, b, c = list(map(int, input().split()))

    p = list(sorted(list(map(int, input().split())), reverse=True))[:x]

    q = list(sorted(list(map(int, input().split())), reverse=True))[:y]

    r = list(map(int, input().split()))

    print((sum(list(sorted(p+q+r, reverse=True))[:(x+y)])))

if __name__ == "__main__":

    main()
def main():
    x, y, a, b, c = list(map(int, input().split()))
    al = sorted(list(map(int, input().split())), reverse=True)[:x]
    bl = sorted(list(map(int, input().split())), reverse=True)[:y]
    cl = sorted(list(map(int, input().split())), reverse=True)
    ans = 0
    xi, yi = 0, 0
    for i in cl:
        if al:
            ai = al[-1]
        else:
            ai = 10000000000
        if bl:
            bi = bl[-1]
        else:
            bi = 10000000000
        if ai < bi:
            if al:
                m = al.pop()
            else:
                m = 0
        else:
            if bl:
                m = bl.pop()
            else:
                m = 0
        if m < i:
            ans += i
        else:
            ans += m
            break
    ans += sum(al) + sum(bl)
    print(ans)


if __name__ == "__main__":
    main()

def main():
    x, y, a, b, c = list(map(int, input().split()))
    p = list(sorted(list(map(int, input().split())), reverse=True))[:x]
    q = list(sorted(list(map(int, input().split())), reverse=True))[:y]
    r = list(map(int, input().split()))
    print((sum(list(sorted(p + q + r, reverse=True))[: (x + y)])))


if __name__ == "__main__":
    main()

-    al = sorted(list(map(int, input().split())), reverse=True)[:x] -    bl = sorted(list(map(int, input().split())), reverse=True)[:y] -    cl = sorted(list(map(int, input().split())), reverse=True) -    ans = 0 -    xi, yi = 0, 0 -    for i in cl: -        if al: -            ai = al[-1] -        else: -            ai = 10000000000 -        if bl: -            bi = bl[-1] -        else: -            bi = 10000000000 -        if ai < bi: -            if al: -                m = al.pop() -            else: -                m = 0 -        else: -            if bl: -                m = bl.pop() -            else: -                m = 0 -        if m < i: -            ans += i -        else: -            ans += m -            break -    ans += sum(al) + sum(bl) -    print(ans) +    p = list(sorted(list(map(int, input().split())), reverse=True))[:x] +    q = list(sorted(list(map(int, input().split())), reverse=True))[:y] +    r = list(map(int, input().split())) +    print((sum(list(sorted(p + q + r, reverse=True))[: (x + y)])))