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(reverse=True)

rcount=0

ans=[]

for i in range(x):

  ans.append(p[-1-i])

for i in range(y):

  ans.append(q[-1-i])

ans.sort()

for i in range(min(len(ans),c)):

  if ans[i]<=r[rcount]:

    ans[i]=r[rcount]

    rcount+=1

print((sum(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(reverse=True)

q.sort(reverse=True)

ans=[]

for i in range(x):

  r.append(p[i])

for i in range(y):

  r.append(q[i])

r.sort(reverse=True)

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

-p.sort() -q.sort() -r.sort(reverse=True) -rcount = 0 +p.sort(reverse=True) +q.sort(reverse=True) -    ans.append(p[-1 - i]) +    r.append(p[i]) -    ans.append(q[-1 - i]) -ans.sort() -for i in range(min(len(ans), c)): -    if ans[i] <= r[rcount]: -        ans[i] = r[rcount] -        rcount += 1 -print((sum(ans))) +    r.append(q[i]) +r.sort(reverse=True) +print((sum(r[0 : x + y])))