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

*p, = list(map(int, input().split()))

*q, = list(map(int, input().split()))

*r, = list(map(int, input().split()))



p.sort(reverse=True)

q.sort(reverse=True)



pool = p[:x] + q[:y] + r

pool.sort(reverse=True)



pool = pool[:x + y]

ans = sum(pool)

print(ans)

def main():

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

    *P, = list(map(int, input().split()))

    *Q, = list(map(int, input().split()))

    *R, = list(map(int, input().split()))



    P.sort(reverse=True)

    Q.sort(reverse=True)



    ans = sum(sorted(P[:X] + Q[:Y] + R, reverse=True)[:X + Y])

    print(ans)





if __name__ == '__main__':

    main()

x, y, a, b, c = list(map(int, input().split()))
(*p,) = list(map(int, input().split()))
(*q,) = list(map(int, input().split()))
(*r,) = list(map(int, input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
pool = p[:x] + q[:y] + r
pool.sort(reverse=True)
pool = pool[: x + y]
ans = sum(pool)
print(ans)

def main():
    X, Y, A, B, C = list(map(int, input().split()))
    (*P,) = list(map(int, input().split()))
    (*Q,) = list(map(int, input().split()))
    (*R,) = list(map(int, input().split()))
    P.sort(reverse=True)
    Q.sort(reverse=True)
    ans = sum(sorted(P[:X] + Q[:Y] + R, reverse=True)[: X + Y])
    print(ans)


if __name__ == "__main__":
    main()

-x, y, a, b, c = list(map(int, input().split())) -(*p,) = list(map(int, input().split())) -(*q,) = list(map(int, input().split())) -(*r,) = list(map(int, input().split())) -p.sort(reverse=True) -q.sort(reverse=True) -pool = p[:x] + q[:y] + r -pool.sort(reverse=True) -pool = pool[: x + y] -ans = sum(pool) -print(ans) +def main(): +    X, Y, A, B, C = list(map(int, input().split())) +    (*P,) = list(map(int, input().split())) +    (*Q,) = list(map(int, input().split())) +    (*R,) = list(map(int, input().split())) +    P.sort(reverse=True) +    Q.sort(reverse=True) +    ans = sum(sorted(P[:X] + Q[:Y] + R, reverse=True)[: X + Y]) +    print(ans) + + +if __name__ == "__main__": +    main()