I know in theory that I would, for the maximum, replace the current value with the new integer that the user inputs if it is higher than the latter, and vice versa for the m