POJ problem 2136