import sys

#input = sys.stdin.readline



rl = lambda: list(map(int, input().split()))



x, y, a, b, c = rl()

p = rl()

q = rl()

r = rl()

p.sort(reverse=True)

q.sort(reverse=True)

r.sort(reverse=True)

res = sum(sorted(p[:x] + q[:y] + r, reverse=True)[:x+y])

print(res)

import sys

input = sys.stdin.readline



rl = lambda: list(map(int, input().split()))



x, y, a, b, c = rl()

p = rl()

q = rl()

r = rl()

p.sort(reverse=True)

q.sort(reverse=True)

r.sort(reverse=True)

res = sum(sorted(p[:x] + q[:y] + r, reverse=True)[:x+y])

print(res)

import sys

# input = sys.stdin.readline
rl = lambda: list(map(int, input().split()))
x, y, a, b, c = rl()
p = rl()
q = rl()
r = rl()
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
res = sum(sorted(p[:x] + q[:y] + r, reverse=True)[: x + y])
print(res)

import sys

input = sys.stdin.readline
rl = lambda: list(map(int, input().split()))
x, y, a, b, c = rl()
p = rl()
q = rl()
r = rl()
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
res = sum(sorted(p[:x] + q[:y] + r, reverse=True)[: x + y])
print(res)

-# input = sys.stdin.readline +input = sys.stdin.readline