solve POJ3126