X,Y,A,B,C = list(map(int, input().split()))

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

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

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

P.sort(reverse=True)

Q.sort(reverse=True)

R.sort(reverse=True)

P = P[:X]

Q = Q[:Y]

All = P + Q + R

All.sort(reverse = True)

print((sum(All[:X+Y])))
def main():

    import sys



    def input(): return sys.stdin.readline().rstrip()



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

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

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

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

    p.sort(reverse=True)

    q.sort(reverse=True)

    r = p[:x]+q[:y]+r

    r.sort(reverse=True)

    print((sum(r[:x+y])))



if __name__ == '__main__':

    main()
X, Y, A, B, C = list(map(int, input().split()))
P = list(map(int, input().split()))
Q = list(map(int, input().split()))
R = list(map(int, input().split()))
P.sort(reverse=True)
Q.sort(reverse=True)
R.sort(reverse=True)
P = P[:X]
Q = Q[:Y]
All = P + Q + R
All.sort(reverse=True)
print((sum(All[: X + Y])))

def main():
    import sys

    def input():
        return sys.stdin.readline().rstrip()

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


if __name__ == "__main__":
    main()

-X, Y, A, B, C = list(map(int, input().split())) -P = list(map(int, input().split())) -Q = list(map(int, input().split())) -R = list(map(int, input().split())) -P.sort(reverse=True) -Q.sort(reverse=True) -R.sort(reverse=True) -P = P[:X] -Q = Q[:Y] -All = P + Q + R -All.sort(reverse=True) -print((sum(All[: X + Y]))) +def main(): +    import sys + +    def input(): +        return sys.stdin.readline().rstrip() + +    x, y, a, b, c = list(map(int, input().split())) +    p = list(map(int, input().split())) +    q = list(map(int, input().split())) +    r = list(map(int, input().split())) +    p.sort(reverse=True) +    q.sort(reverse=True) +    r = p[:x] + q[:y] + r +    r.sort(reverse=True) +    print((sum(r[: x + y]))) + + +if __name__ == "__main__": +    main()