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

red = sorted(int(x) for x in input().split())[-x:]

green = sorted(int(x) for x in input().split())[-y:]

print((sum(sorted([int(x) for x in input().split()] + red + green)[-(x+y):])))

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

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

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

red.sort(reverse=True)

green.sort(reverse=True)

candidates = [int(x) for x in input().split()] + red[:x] + green[:y]

candidates.sort(reverse=True)

print((sum(candidates[:x+y])))
x, y, a, b, c = list(map(int, input().split()))
red = sorted(int(x) for x in input().split())[-x:]
green = sorted(int(x) for x in input().split())[-y:]
print((sum(sorted([int(x) for x in input().split()] + red + green)[-(x + y) :])))

x, y, a, b, c = list(map(int, input().split()))
red = [int(x) for x in input().split()]
green = [int(x) for x in input().split()]
red.sort(reverse=True)
green.sort(reverse=True)
candidates = [int(x) for x in input().split()] + red[:x] + green[:y]
candidates.sort(reverse=True)
print((sum(candidates[: x + y])))

-red = sorted(int(x) for x in input().split())[-x:] -green = sorted(int(x) for x in input().split())[-y:] -print((sum(sorted([int(x) for x in input().split()] + red + green)[-(x + y) :]))) +red = [int(x) for x in input().split()] +green = [int(x) for x in input().split()] +red.sort(reverse=True) +green.sort(reverse=True) +candidates = [int(x) for x in input().split()] + red[:x] + green[:y] +candidates.sort(reverse=True) +print((sum(candidates[: x + y])))