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

p = [int(x) for x in input().split()]

q = [int(x) for x in input().split()]

r = [int(x) for x in input().split()]

p.sort(reverse = True)

q.sort(reverse = True)

r.sort(reverse = True)

newp = p[:X]

newq = q[:Y]

lis = newp + newq

lis.sort(reverse = True)

s = sum(lis)

for i in range(len(r)):

    if lis[-i-1] < r[i]:

        s = s - lis[-i-1] + r[i]

    else:

        break

print(s)

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

#p = [int(x) for x in input().split()]

#q = [int(x) for x in input().split()]

#r = [int(x) for x in input().split()]

#p.sort(reverse = True)

#q.sort(reverse = True)

#r.sort(reverse = True)

#newp = p[:X]

#newq = q[:Y]

#lis = newp + newq

#lis.sort(reverse = True)

#s = sum(lis)

#for i in range(len(r)):

#    if lis[-i-1] < r[i]:

#        s = s - lis[-i-1] + r[i]

#    else:

#        break

#print(s)



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

p = [int(x) for x in input().split()]

q = [int(x) for x in input().split()]

r = [int(x) for x in input().split()]

p.sort(reverse = True)

q.sort(reverse = True)

p = p[:X]

q = q[:Y]

ans = p+q+r

ans.sort(reverse = True)

print((sum(ans[:X+Y])))

X, Y, A, B, C = list(map(int, input().split()))
p = [int(x) for x in input().split()]
q = [int(x) for x in input().split()]
r = [int(x) for x in input().split()]
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
newp = p[:X]
newq = q[:Y]
lis = newp + newq
lis.sort(reverse=True)
s = sum(lis)
for i in range(len(r)):
    if lis[-i - 1] < r[i]:
        s = s - lis[-i - 1] + r[i]
    else:
        break
print(s)

# X,Y,A,B,C = map(int, input().split())
# p = [int(x) for x in input().split()]
# q = [int(x) for x in input().split()]
# r = [int(x) for x in input().split()]
# p.sort(reverse = True)
# q.sort(reverse = True)
# r.sort(reverse = True)
# newp = p[:X]
# newq = q[:Y]
# lis = newp + newq
# lis.sort(reverse = True)
# s = sum(lis)
# for i in range(len(r)):
#    if lis[-i-1] < r[i]:
#        s = s - lis[-i-1] + r[i]
#    else:
#        break
# print(s)
X, Y, A, B, C = list(map(int, input().split()))
p = [int(x) for x in input().split()]
q = [int(x) for x in input().split()]
r = [int(x) for x in input().split()]
p.sort(reverse=True)
q.sort(reverse=True)
p = p[:X]
q = q[:Y]
ans = p + q + r
ans.sort(reverse=True)
print((sum(ans[: X + Y])))

+# X,Y,A,B,C = map(int, input().split()) +# p = [int(x) for x in input().split()] +# q = [int(x) for x in input().split()] +# r = [int(x) for x in input().split()] +# p.sort(reverse = True) +# q.sort(reverse = True) +# r.sort(reverse = True) +# newp = p[:X] +# newq = q[:Y] +# lis = newp + newq +# lis.sort(reverse = True) +# s = sum(lis) +# for i in range(len(r)): +#    if lis[-i-1] < r[i]: +#        s = s - lis[-i-1] + r[i] +#    else: +#        break +# print(s) -r.sort(reverse=True) -newp = p[:X] -newq = q[:Y] -lis = newp + newq -lis.sort(reverse=True) -s = sum(lis) -for i in range(len(r)): -    if lis[-i - 1] < r[i]: -        s = s - lis[-i - 1] + r[i] -    else: -        break -print(s) +p = p[:X] +q = q[:Y] +ans = p + q + r +ans.sort(reverse=True) +print((sum(ans[: X + Y])))