def main():

    import sys

    import numpy as np



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

    p = list(map(int, sys.stdin.readline().split()))

    q = list(map(int, sys.stdin.readline().split()))

    r = list(map(int, sys.stdin.readline().split()))



    p = sorted(p,reverse=True)

    q = sorted(q,reverse=True)

    r = sorted(r,reverse=True)



    p = p[:x]

    q = q[:y]



    i = max(r)

    j = sum(x > i for x in p)

    k = sum(x > i for x in q)



    pd = p[j:]

    qd = q[k:]



    m = (x-j) + (y-k)



    rem = sorted(pd + qd + r,reverse=True)

    ans = sum(p[:j] + q[:k]) + sum(rem[:m])

    print(ans)







if __name__ == '__main__':

    main()

def main():

    s = open(0).readlines()



    x, y, a, b, c = list(map(int, s[0].split()))

    f = lambda x: list(map(int, x.split()))



    p, q, r = list(map(f, s[1:]))



    p = sorted(p, reverse=True)

    q = sorted(q, reverse=True)

    r = sorted(r, reverse=True)



    p = p[:x]

    q = q[:y]



    i = max(r)

    j = sum(x > i for x in p)

    k = sum(x > i for x in q)



    pd = p[j:]

    qd = q[k:]



    m = (x - j) + (y - k)



    rem = sorted(pd + qd + r, reverse=True)

    ans = sum(p[:j] + q[:k]) + sum(rem[:m])

    print(ans)





if __name__ == '__main__':

    main()

def main():
    import sys
    import numpy as np

    x, y, a, b, c = list(map(int, input().split()))
    p = list(map(int, sys.stdin.readline().split()))
    q = list(map(int, sys.stdin.readline().split()))
    r = list(map(int, sys.stdin.readline().split()))
    p = sorted(p, reverse=True)
    q = sorted(q, reverse=True)
    r = sorted(r, reverse=True)
    p = p[:x]
    q = q[:y]
    i = max(r)
    j = sum(x > i for x in p)
    k = sum(x > i for x in q)
    pd = p[j:]
    qd = q[k:]
    m = (x - j) + (y - k)
    rem = sorted(pd + qd + r, reverse=True)
    ans = sum(p[:j] + q[:k]) + sum(rem[:m])
    print(ans)


if __name__ == "__main__":
    main()

def main():
    s = open(0).readlines()
    x, y, a, b, c = list(map(int, s[0].split()))
    f = lambda x: list(map(int, x.split()))
    p, q, r = list(map(f, s[1:]))
    p = sorted(p, reverse=True)
    q = sorted(q, reverse=True)
    r = sorted(r, reverse=True)
    p = p[:x]
    q = q[:y]
    i = max(r)
    j = sum(x > i for x in p)
    k = sum(x > i for x in q)
    pd = p[j:]
    qd = q[k:]
    m = (x - j) + (y - k)
    rem = sorted(pd + qd + r, reverse=True)
    ans = sum(p[:j] + q[:k]) + sum(rem[:m])
    print(ans)


if __name__ == "__main__":
    main()

-    import sys -    import numpy as np - -    x, y, a, b, c = list(map(int, input().split())) -    p = list(map(int, sys.stdin.readline().split())) -    q = list(map(int, sys.stdin.readline().split())) -    r = list(map(int, sys.stdin.readline().split())) +    s = open(0).readlines() +    x, y, a, b, c = list(map(int, s[0].split())) +    f = lambda x: list(map(int, x.split())) +    p, q, r = list(map(f, s[1:]))