Close #3. Solve POJ1002