Poj 3414 problem solving report