# coding: utf-8

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)

ans = 0

L = P[:X] + Q[:Y]

L.sort()

idx = 0

for i in range(X+Y):

    if idx >= C:

        break

    if L[i] < R[idx]:

        L[i] = R[idx]

        idx += 1

print((sum(L)))
# coding: utf-8

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=False)

ans = 0

L = P[:X] + Q[:Y] + R

L.sort(reverse=True)

print((sum(L[:X+Y])))
# coding: utf-8
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)
ans = 0
L = P[:X] + Q[:Y]
L.sort()
idx = 0
for i in range(X + Y):
    if idx >= C:
        break
    if L[i] < R[idx]:
        L[i] = R[idx]
        idx += 1
print((sum(L)))

# coding: utf-8
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=False)
ans = 0
L = P[:X] + Q[:Y] + R
L.sort(reverse=True)
print((sum(L[: X + Y])))

-R.sort(reverse=True) +R.sort(reverse=False) -L = P[:X] + Q[:Y] -L.sort() -idx = 0 -for i in range(X + Y): -    if idx >= C: -        break -    if L[i] < R[idx]: -        L[i] = R[idx] -        idx += 1 -print((sum(L))) +L = P[:X] + Q[:Y] + R +L.sort(reverse=True) +print((sum(L[: X + Y])))