def circleOfNumbers(n, firstNumber):

    return (firstNumber + n/2)%n


# Other solutions
# def circleOfNumbers(n, firstNumber):
#     return firstNumber - n/2 if (firstNumber - n/2) >= 0 else (firstNumber - n/2) + n
