nk = list(map(int,input().split()))

n,k = nk

h = list(map(int,input().split()))

if k >= len(h):

    print((0))

else:

    h.sort()

    for i in range (k):

        h.pop()

    print((sum(h)))
nMonsters, nSpecial = [int(x) for x in input().split()]



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



monst.sort()



nMonsters -= nSpecial



if nMonsters < 0:

    print((0))

else:

    print((sum(monst[0:nMonsters])))

nk = list(map(int, input().split()))
n, k = nk
h = list(map(int, input().split()))
if k >= len(h):
    print((0))
else:
    h.sort()
    for i in range(k):
        h.pop()
    print((sum(h)))

nMonsters, nSpecial = [int(x) for x in input().split()]
monst = [int(x) for x in input().split()]
monst.sort()
nMonsters -= nSpecial
if nMonsters < 0:
    print((0))
else:
    print((sum(monst[0:nMonsters])))

-nk = list(map(int, input().split())) -n, k = nk -h = list(map(int, input().split())) -if k >= len(h): +nMonsters, nSpecial = [int(x) for x in input().split()] +monst = [int(x) for x in input().split()] +monst.sort() +nMonsters -= nSpecial +if nMonsters < 0: -    h.sort() -    for i in range(k): -        h.pop() -    print((sum(h))) +    print((sum(monst[0:nMonsters])))