import sys

from heapq import heapify, heappushpop



read = sys.stdin.read

readline = sys.stdin.readline



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

p = list(map(int, readline().split()))

q = list(map(int, readline().split()))

r = [0] + list(map(int, readline().split()))

p.sort()

q.sort()

r.sort()

heap_p = p[-X:]

heap_q = q[-Y:]

heapify(heap_q)

heapify(heap_p)

while r[-1] > heap_p[0] or r[-1] > heap_q[0]:

    if heap_q[0] < heap_p[0]:

        heappushpop(heap_q, r.pop())

    else:

        heappushpop(heap_p, r.pop())



print((sum(heap_p) + sum(heap_q)))

import sys

from heapq import heapify, heappushpop



read = sys.stdin.read

readline = sys.stdin.readline



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

p = list(map(int, readline().split()))

q = list(map(int, readline().split()))

r = [0] + list(map(int, readline().split()))

p.sort()

q.sort()

r.sort()

heap_p = p[-X:]

heap_q = q[-Y:]

'''

heapify(heap_q)

heapify(heap_p)

while r[-1] > heap_p[0] or r[-1] > heap_q[0]:

    if heap_q[0] < heap_p[0]:

        heappushpop(heap_q, r.pop())

    else:

        heappushpop(heap_p, r.pop())



print(sum(heap_p) + sum(heap_q))

'''

a = heap_p + heap_q + r

a.sort()

print((sum(a[-(X + Y):])))

import sys
from heapq import heapify, heappushpop

read = sys.stdin.read
readline = sys.stdin.readline
X, Y, A, B, C = list(map(int, readline().split()))
p = list(map(int, readline().split()))
q = list(map(int, readline().split()))
r = [0] + list(map(int, readline().split()))
p.sort()
q.sort()
r.sort()
heap_p = p[-X:]
heap_q = q[-Y:]
heapify(heap_q)
heapify(heap_p)
while r[-1] > heap_p[0] or r[-1] > heap_q[0]:
    if heap_q[0] < heap_p[0]:
        heappushpop(heap_q, r.pop())
    else:
        heappushpop(heap_p, r.pop())
print((sum(heap_p) + sum(heap_q)))

import sys
from heapq import heapify, heappushpop

read = sys.stdin.read
readline = sys.stdin.readline
X, Y, A, B, C = list(map(int, readline().split()))
p = list(map(int, readline().split()))
q = list(map(int, readline().split()))
r = [0] + list(map(int, readline().split()))
p.sort()
q.sort()
r.sort()
heap_p = p[-X:]
heap_q = q[-Y:]
"""
heapify(heap_q)
heapify(heap_p)
while r[-1] > heap_p[0] or r[-1] > heap_q[0]:
    if heap_q[0] < heap_p[0]:
        heappushpop(heap_q, r.pop())
    else:
        heappushpop(heap_p, r.pop())
print(sum(heap_p) + sum(heap_q))
"""
a = heap_p + heap_q + r
a.sort()
print((sum(a[-(X + Y) :])))

+""" -print((sum(heap_p) + sum(heap_q))) +print(sum(heap_p) + sum(heap_q)) +""" +a = heap_p + heap_q + r +a.sort() +print((sum(a[-(X + Y) :])))