POJ No.3253, greedy algorithm.