Fixed the solution for the specified number.