POJ#2393 greedy problem. Rank:12639