move poj2709 to greedy path