import numpy as np

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

p = sorted(list(map(int, input().split())))

q = sorted(list(map(int, input().split())))

r = sorted(list(map(int, input().split())))



filt_p = p[-x:]

filt_q = q[-y:]

filt_p.extend(filt_q)

filt_p.extend(r)

all_apples = sorted(filt_p)



ans = np.sum(np.array(all_apples)[-x-y:])



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

p = sorted(list(map(int, input().split())))

q = sorted(list(map(int, input().split())))

r = sorted(list(map(int, input().split())))



filt_p = p[-x:]

filt_q = q[-y:]

filt_p.extend(filt_q)

filt_p.extend(r)

all_apples = sorted(filt_p)



ans = sum(all_apples[-x-y:])



print((str(ans)))

import numpy as np

x, y, a, b, c = list(map(int, input().split()))
p = sorted(list(map(int, input().split())))
q = sorted(list(map(int, input().split())))
r = sorted(list(map(int, input().split())))
filt_p = p[-x:]
filt_q = q[-y:]
filt_p.extend(filt_q)
filt_p.extend(r)
all_apples = sorted(filt_p)
ans = np.sum(np.array(all_apples)[-x - y :])
print((str(ans)))

x, y, a, b, c = list(map(int, input().split()))
p = sorted(list(map(int, input().split())))
q = sorted(list(map(int, input().split())))
r = sorted(list(map(int, input().split())))
filt_p = p[-x:]
filt_q = q[-y:]
filt_p.extend(filt_q)
filt_p.extend(r)
all_apples = sorted(filt_p)
ans = sum(all_apples[-x - y :])
print((str(ans)))

-import numpy as np - -ans = np.sum(np.array(all_apples)[-x - y :]) +ans = sum(all_apples[-x - y :])