list_of_integers = input().split()
count = int(input())
integers = list(map(int, list_of_integers))
for i in range(count):
    integers.remove(min(integers))
print(integers)

24a6f01192ebfe8ae92b7175f9b020cf33d49bca
<mask token>

<mask token>
for i in range(count):
    integers.remove(min(integers))
print(integers)

list_of_integers = input().split()
count = int(input())
integers = list(map(int, list_of_integers))
for i in range(count):
    integers.remove(min(integers))
print(integers)
