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]



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

mix = np.sort(mix)[::-1]



eat = x+y



print((sum(mix[:eat])))
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)))
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]
mix = np.hstack((p, q, r))
mix = np.sort(mix)[::-1]
eat = x + y
print((sum(mix[:eat])))

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

-mix = np.hstack((p, q, r)) -mix = np.sort(mix)[::-1] -eat = x + y -print((sum(mix[:eat]))) +a = np.hstack((p, q, r)) +a = np.sort(a)[::-1][: (x + y)] +print((np.sum(a)))