On the Subject of The Number Game

Solution: Number_In_Middle % (MAH + 1)