def get_sign_bit(num: int) -> int:
    """Returns the sign bit of a number (MSB of an unsigned int)

    Args:
        num:

    >>> get_sign_bit(128)
    0
    >>> get_sign_bit(-128)
    1

    """
    return -(num >> num.bit_length())