poj2247. priority-queue. boring output requirement