priority-queue. boring output requirement