import numpy as np



x, y, a, b, c = list(map(int, input().split()))

p = np.array(list(map(int, input().split())))

q = np.array(list(map(int, input().split())))

r = np.array(list(map(int, input().split())))



p = np.sort(p)[::-1][:x]

q = np.sort(q)[::-1][:y]

a = np.hstack((p, q, r))

a = np.sort(a)[::-1][:(x+y)]



print((np.sum(a)))
# npを使わずにリストの破壊的ソートを利用する場合



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



p = p[::-1][:x]

q = q[::-1][:y]

a = p + q + r

a.sort(reverse=True)



print((sum(a[:x+y])))
import numpy as np

x, y, a, b, c = list(map(int, input().split()))
p = np.array(list(map(int, input().split())))
q = np.array(list(map(int, input().split())))
r = np.array(list(map(int, input().split())))
p = np.sort(p)[::-1][:x]
q = np.sort(q)[::-1][:y]
a = np.hstack((p, q, r))
a = np.sort(a)[::-1][: (x + y)]
print((np.sum(a)))

# npを使わずにリストの破壊的ソートを利用する場合
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()
p = p[::-1][:x]
q = q[::-1][:y]
a = p + q + r
a.sort(reverse=True)
print((sum(a[: x + y])))

-import numpy as np - +# npを使わずにリストの破壊的ソートを利用する場合 -p = np.array(list(map(int, input().split()))) -q = np.array(list(map(int, input().split()))) -r = np.array(list(map(int, input().split()))) -p = np.sort(p)[::-1][:x] -q = np.sort(q)[::-1][:y] -a = np.hstack((p, q, r)) -a = np.sort(a)[::-1][: (x + y)] -print((np.sum(a))) +p = list(map(int, input().split())) +q = list(map(int, input().split())) +r = list(map(int, input().split())) +p.sort() +q.sort() +p = p[::-1][:x] +q = q[::-1][:y] +a = p + q + r +a.sort(reverse=True) +print((sum(a[: x + y])))