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)

ans = r

for i in range(x):

    ans.append(p[i])

for i in range(y):

    ans.append(q[i])

r.sort(reverse=True)

print((sum(ans[:x+y])))
x, y, a, b, c = list(map(int, input().split()))

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

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

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

for i in range(x): r.append(p[a-i-1])

for i in range(y): r.append(q[b-i-1])

r.sort()

print((sum(r[len(r)-x-y:])))
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)
ans = r
for i in range(x):
    ans.append(p[i])
for i in range(y):
    ans.append(q[i])
r.sort(reverse=True)
print((sum(ans[: x + y])))

x, y, a, b, c = list(map(int, input().split()))
p = sorted(list(map(int, input().split())))
q = sorted(list(map(int, input().split())))
r = list(map(int, input().split()))
for i in range(x):
    r.append(p[a - i - 1])
for i in range(y):
    r.append(q[b - i - 1])
r.sort()
print((sum(r[len(r) - x - y :])))

-p = list(map(int, input().split())) -q = list(map(int, input().split())) +p = sorted(list(map(int, input().split()))) +q = sorted(list(map(int, input().split()))) -p.sort(reverse=True) -q.sort(reverse=True) -ans = r -    ans.append(p[i]) +    r.append(p[a - i - 1]) -    ans.append(q[i]) -r.sort(reverse=True) -print((sum(ans[: x + y]))) +    r.append(q[b - i - 1]) +r.sort() +print((sum(r[len(r) - x - y :])))