solve POJ/2236
solve POJ/2236