In a building with $n$ floors some packages have arrived for each department and it is necessary to carry them up to their respective recipients. There are $m$ packages at floor $0$ and each of them has annotated the floor to which it must be sent. For security issues, the elevator can carry at most $k$ packages at the same time. A delivery consists in the following process: select the maximum floor of the delivery, move the elevator to that floor and finally deliver the packages to the current floor and the ones below it (while the elevator goes down to floor $0$). In each delivery of the packages, the elevator must end up at floor $0$. Your task is to find out the optimal strategy to carry all the packages with the minimum number of deliveries.