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



z = sorted(p)[-X:] + sorted(q)[-Y:] + r

print((sum(sorted(z)[-(X+Y):])))



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

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

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

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



cand = sorted(P[-X:] + Q[-Y:] + R)

print((sum(cand[-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()))
z = sorted(p)[-X:] + sorted(q)[-Y:] + r
print((sum(sorted(z)[-(X + Y) :])))

X, Y, A, B, C = list(map(int, input().split()))
P = sorted(map(int, input().split()))
Q = sorted(map(int, input().split()))
R = sorted(map(int, input().split()))
cand = sorted(P[-X:] + Q[-Y:] + R)
print((sum(cand[-X - Y :])))

-p = list(map(int, input().split())) -q = list(map(int, input().split())) -r = list(map(int, input().split())) -z = sorted(p)[-X:] + sorted(q)[-Y:] + r -print((sum(sorted(z)[-(X + Y) :]))) +P = sorted(map(int, input().split())) +Q = sorted(map(int, input().split())) +R = sorted(map(int, input().split())) +cand = sorted(P[-X:] + Q[-Y:] + R) +print((sum(cand[-X - Y :])))