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

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

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

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

all = []

for i in range(x):

    all.append(p[i])

for i in range(y):

    all.append(q[i])

for i in range(c):

    all.append(r[i])

all = sorted(all, reverse=True)

res = 0

for i in range(x + y):

    res += all[i]

print(res)
import sys



sys.setrecursionlimit(10 ** 7)

input = sys.stdin.readline

f_inf = float('inf')

mod = 10 ** 9 + 7





def resolve():

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

    P = sorted(list(map(int, input().split())), reverse=True)

    Q = sorted(list(map(int, input().split())), reverse=True)

    R = sorted(list(map(int, input().split())), reverse=True)

    Apples = sorted(P[:x] + Q[:y] + R, reverse=True)

    print((sum(Apples[: x + y])))





if __name__ == '__main__':

    resolve()

x, y, a, b, c = list(map(int, input().split()))
p = sorted(list(map(int, input().split())), reverse=True)
q = sorted(list(map(int, input().split())), reverse=True)
r = sorted(list(map(int, input().split())), reverse=True)
all = []
for i in range(x):
    all.append(p[i])
for i in range(y):
    all.append(q[i])
for i in range(c):
    all.append(r[i])
all = sorted(all, reverse=True)
res = 0
for i in range(x + y):
    res += all[i]
print(res)

import sys

sys.setrecursionlimit(10**7)
input = sys.stdin.readline
f_inf = float("inf")
mod = 10**9 + 7


def resolve():
    x, y, a, b, c = list(map(int, input().split()))
    P = sorted(list(map(int, input().split())), reverse=True)
    Q = sorted(list(map(int, input().split())), reverse=True)
    R = sorted(list(map(int, input().split())), reverse=True)
    Apples = sorted(P[:x] + Q[:y] + R, reverse=True)
    print((sum(Apples[: x + y])))


if __name__ == "__main__":
    resolve()

-x, y, a, b, c = list(map(int, input().split())) -p = sorted(list(map(int, input().split())), reverse=True) -q = sorted(list(map(int, input().split())), reverse=True) -r = sorted(list(map(int, input().split())), reverse=True) -all = [] -for i in range(x): -    all.append(p[i]) -for i in range(y): -    all.append(q[i]) -for i in range(c): -    all.append(r[i]) -all = sorted(all, reverse=True) -res = 0 -for i in range(x + y): -    res += all[i] -print(res) +import sys + +sys.setrecursionlimit(10**7) +input = sys.stdin.readline +f_inf = float("inf") +mod = 10**9 + 7 + + +def resolve(): +    x, y, a, b, c = list(map(int, input().split())) +    P = sorted(list(map(int, input().split())), reverse=True) +    Q = sorted(list(map(int, input().split())), reverse=True) +    R = sorted(list(map(int, input().split())), reverse=True) +    Apples = sorted(P[:x] + Q[:y] + R, reverse=True) +    print((sum(Apples[: x + y]))) + + +if __name__ == "__main__": +    resolve()