def inv_mod(dividend: int, divisor: int):
    """
    Return the additive inverse of 'dividend' wrt to modulo divisor arithmetic,
    0 <= return < divisor.
    """
    return (divisor - dividend % divisor) % divisor
