POJ Solver