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()

q.sort()

r.sort()



ans = 0



cnt = 0



while x+y-cnt > 0:

    if x > 0:

        p1 = p[-1]

    else:

        p1 = 0

    if y > 0:

        p2 = q[-1]

    else:

        p2 = 0

    if cnt < c:

        p3 = r[-1]

    else:

        p3 = 0

    eat = max(p1,p2,p3)

    ans += eat

    if x > 0 and p[-1] == eat:

        x -= 1

        p.pop()

    elif y > 0 and q[-1] == eat:

        y -= 1

        q.pop()

    else:

        cnt += 1

        r.pop()

print(ans)

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()

q.sort()

r.sort()

ans = p[a-x:]+q[b-y:]+r

ans.sort()

print((sum(ans[c:])))

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()
q.sort()
r.sort()
ans = 0
cnt = 0
while x + y - cnt > 0:
    if x > 0:
        p1 = p[-1]
    else:
        p1 = 0
    if y > 0:
        p2 = q[-1]
    else:
        p2 = 0
    if cnt < c:
        p3 = r[-1]
    else:
        p3 = 0
    eat = max(p1, p2, p3)
    ans += eat
    if x > 0 and p[-1] == eat:
        x -= 1
        p.pop()
    elif y > 0 and q[-1] == eat:
        y -= 1
        q.pop()
    else:
        cnt += 1
        r.pop()
print(ans)

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()
q.sort()
r.sort()
ans = p[a - x :] + q[b - y :] + r
ans.sort()
print((sum(ans[c:])))

-ans = 0 -cnt = 0 -while x + y - cnt > 0: -    if x > 0: -        p1 = p[-1] -    else: -        p1 = 0 -    if y > 0: -        p2 = q[-1] -    else: -        p2 = 0 -    if cnt < c: -        p3 = r[-1] -    else: -        p3 = 0 -    eat = max(p1, p2, p3) -    ans += eat -    if x > 0 and p[-1] == eat: -        x -= 1 -        p.pop() -    elif y > 0 and q[-1] == eat: -        y -= 1 -        q.pop() -    else: -        cnt += 1 -        r.pop() -print(ans) +ans = p[a - x :] + q[b - y :] + r +ans.sort() +print((sum(ans[c:])))