the solution of the MinMaxDivision