from heapq import heapify, heappop, heappush, heappushpop

import sys

input = sys.stdin.readline

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

p=p[:x]

q=q[:y]

heapify(p)

heapify(q)

mp = heappop(p)

mq = heappop(q)

for ri in r:

  if mp<mq:

    if mp<ri:

      heappush(p, ri)

      mp=heappop(p)

  else:

    if mq<ri:

      heappush(q, ri)

      mq=heappop(q)



print((sum(p)+sum(q)+mp+mq))
import sys

input = sys.stdin.readline

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)

p=p[:x]

q=q[:y]

r=r+p+q

r.sort(reverse=True)

print((sum(r[:x+y])))
from heapq import heapify, heappop, heappush, heappushpop
import sys

input = sys.stdin.readline
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()
p = p[:x]
q = q[:y]
heapify(p)
heapify(q)
mp = heappop(p)
mq = heappop(q)
for ri in r:
    if mp < mq:
        if mp < ri:
            heappush(p, ri)
            mp = heappop(p)
    else:
        if mq < ri:
            heappush(q, ri)
            mq = heappop(q)
print((sum(p) + sum(q) + mp + mq))

import sys

input = sys.stdin.readline
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)
p = p[:x]
q = q[:y]
r = r + p + q
r.sort(reverse=True)
print((sum(r[: x + y])))

-from heapq import heapify, heappop, heappush, heappushpop -r.sort() -heapify(p) -heapify(q) -mp = heappop(p) -mq = heappop(q) -for ri in r: -    if mp < mq: -        if mp < ri: -            heappush(p, ri) -            mp = heappop(p) -    else: -        if mq < ri: -            heappush(q, ri) -            mq = heappop(q) -print((sum(p) + sum(q) + mp + mq)) +r = r + p + q +r.sort(reverse=True) +print((sum(r[: x + y])))