import bisect

X,Y,A,B,C=list(map(int,input().split()))



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

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

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



AList.sort(reverse=True)

BList.sort(reverse=True)

CList.sort(reverse=True)



alist = AList[0:X] + BList[0:Y]

clist = CList

alist.sort()

ans = sum(alist)

cnt = 0



for i in range(C):

  a = clist[i]

  b = bisect.bisect_left(alist,a)

  if i < b:

    ans += a

    cnt += 1







aa = sum(alist[:cnt])



print((int(ans -aa)))
import bisect

X,Y,A,B,C=list(map(int,input().split()))



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

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

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



AList.sort(reverse=True)

BList.sort(reverse=True)

CList.sort(reverse=True)



alist = AList[0:X] + BList[0:Y] + CList

alist.sort(reverse=True)



print((int(sum(alist[:X+Y]))))
import bisect

X, Y, A, B, C = list(map(int, input().split()))
AList = list(map(int, input().split()))
BList = list(map(int, input().split()))
CList = list(map(int, input().split()))
AList.sort(reverse=True)
BList.sort(reverse=True)
CList.sort(reverse=True)
alist = AList[0:X] + BList[0:Y]
clist = CList
alist.sort()
ans = sum(alist)
cnt = 0
for i in range(C):
    a = clist[i]
    b = bisect.bisect_left(alist, a)
    if i < b:
        ans += a
        cnt += 1
aa = sum(alist[:cnt])
print((int(ans - aa)))

import bisect

X, Y, A, B, C = list(map(int, input().split()))
AList = list(map(int, input().split()))
BList = list(map(int, input().split()))
CList = list(map(int, input().split()))
AList.sort(reverse=True)
BList.sort(reverse=True)
CList.sort(reverse=True)
alist = AList[0:X] + BList[0:Y] + CList
alist.sort(reverse=True)
print((int(sum(alist[: X + Y]))))

-alist = AList[0:X] + BList[0:Y] -clist = CList -alist.sort() -ans = sum(alist) -cnt = 0 -for i in range(C): -    a = clist[i] -    b = bisect.bisect_left(alist, a) -    if i < b: -        ans += a -        cnt += 1 -aa = sum(alist[:cnt]) -print((int(ans - aa))) +alist = AList[0:X] + BList[0:Y] + CList +alist.sort(reverse=True) +print((int(sum(alist[: X + Y]))))