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

ppp = list(map(int, input().split()))

qqq = list(map(int, input().split()))

rrr = list(map(int, input().split()))

ppp.sort(reverse=True)

qqq.sort(reverse=True)

rrr.sort(reverse=True)

ppqq = ppp[:x] + qqq[:y]

ppqq.sort(reverse=True)

ppqq.insert(0, 0)

rrr.insert(0, 0)



i = x + y

j = 1

while i > 0 and j <= c and ppqq[i] < rrr[j]:

    i -= 1

    j += 1

print((sum(ppqq[:i + 1]) + sum(rrr[:j])))

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

ppp = list(map(int, input().split()))

qqq = list(map(int, input().split()))

rrr = list(map(int, input().split()))

ppp.sort(reverse=True)

qqq.sort(reverse=True)

ppqq = ppp[:x] + qqq[:y]

ppqq.extend(rrr)

ppqq.sort(reverse=True)

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

x, y, a, b, c = list(map(int, input().split()))
ppp = list(map(int, input().split()))
qqq = list(map(int, input().split()))
rrr = list(map(int, input().split()))
ppp.sort(reverse=True)
qqq.sort(reverse=True)
rrr.sort(reverse=True)
ppqq = ppp[:x] + qqq[:y]
ppqq.sort(reverse=True)
ppqq.insert(0, 0)
rrr.insert(0, 0)
i = x + y
j = 1
while i > 0 and j <= c and ppqq[i] < rrr[j]:
    i -= 1
    j += 1
print((sum(ppqq[: i + 1]) + sum(rrr[:j])))

x, y, a, b, c = list(map(int, input().split()))
ppp = list(map(int, input().split()))
qqq = list(map(int, input().split()))
rrr = list(map(int, input().split()))
ppp.sort(reverse=True)
qqq.sort(reverse=True)
ppqq = ppp[:x] + qqq[:y]
ppqq.extend(rrr)
ppqq.sort(reverse=True)
print((sum(ppqq[: x + y])))

-rrr.sort(reverse=True) +ppqq.extend(rrr) -ppqq.insert(0, 0) -rrr.insert(0, 0) -i = x + y -j = 1 -while i > 0 and j <= c and ppqq[i] < rrr[j]: -    i -= 1 -    j += 1 -print((sum(ppqq[: i + 1]) + sum(rrr[:j]))) +print((sum(ppqq[: x + y])))