def mod_multiply(n: int, m: int, mod: int) -> int:
    """Finds the the modular product of two non-negative integers.

    Args:
        n: The first non-negative integer multiplicand.
        m: The second non-negative integer multiplicand.
        mod: The positive integer modulus for the calculation.

    Returns:
        The result of multiplying ``n`` by ``m``, modulo ``mod``.
    """
    return ((n % mod) * (m % mod)) % mod