def main():

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

    *p, = sorted(map(int, input().split()), reverse=True)

    *q, = sorted(map(int, input().split()), reverse=True)

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



    pool = p[:X] + q[:Y] + r

    pool.sort(reverse=True)

    ret = sum(pool[:X + Y])

    print(ret)





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,) = sorted(map(int, input().split()), reverse=True)
    (*q,) = sorted(map(int, input().split()), reverse=True)
    (*r,) = list(map(int, input().split()))
    pool = p[:X] + q[:Y] + r
    pool.sort(reverse=True)
    ret = sum(pool[: X + Y])
    print(ret)


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,) = sorted(map(int, input().split()), reverse=True) -    (*q,) = sorted(map(int, input().split()), reverse=True) -    (*r,) = list(map(int, input().split())) -    pool = p[:X] + q[:Y] + r -    pool.sort(reverse=True) -    ret = sum(pool[: X + Y]) -    print(ret) - - -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)