def set_nth_bit(n: int, i: int) -> int:
    """
    Set the n-th bit.

    >>> bin(set_nth_bit(0b100000, 0))
    '0b100001'
    >>> bin(set_nth_bit(0b100001, 0))
    '0b100001'
    """
    return n | (1 << i)