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



l=sorted(p,reverse=True)[:x]+sorted(q,reverse=True)[:y]+r

l.sort(reverse=True)

print((sum(l[: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)

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

cand.sort(reverse=True)

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()))
l = sorted(p, reverse=True)[:x] + sorted(q, reverse=True)[:y] + r
l.sort(reverse=True)
print((sum(l[: 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)
cand = p[:x] + q[:y] + r
cand.sort(reverse=True)
print((sum(cand[: x + y])))

-l = sorted(p, reverse=True)[:x] + sorted(q, reverse=True)[:y] + r -l.sort(reverse=True) -print((sum(l[: x + y]))) +p.sort(reverse=True) +q.sort(reverse=True) +cand = p[:x] + q[:y] + r +cand.sort(reverse=True) +print((sum(cand[: x + y])))