



'''simple docstring'''





def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase      ):



				"""simple docstring"""





				lowerCAmelCase__			:  Dict											= int(UpperCamelCase      )
				if decimal in (0, 1):  # Exit cases for the recursion
								return str(UpperCamelCase      )
				lowerCAmelCase__			:  Optional[int]											= divmod(UpperCamelCase							,   2      )
				return binary_recursive(UpperCamelCase      ) + str(UpperCamelCase      )
def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase      ):



				"""simple docstring"""





				lowerCAmelCase__			:  str											= str(UpperCamelCase      ).strip()
				if not number:
								raise ValueError("""No input value was provided"""      )
				lowerCAmelCase__			:  Dict											= """-""" if number.startswith("""-"""      ) else """"""
				lowerCAmelCase__			:  Optional[int]											= number.lstrip("""-"""      )
				if not number.isnumeric():
								raise ValueError("""Input value is not an integer"""      )
				return f"""{negative}0b{binary_recursive(int(UpperCamelCase      )      )}"""


if __name__ == "__main__":
	from doctest import testmod

	testmod()







'''simple docstring'''





_lowerCAmelCase										=     '''Input must be a string of 8 numbers plus letter'''
_lowerCAmelCase										=     '''TRWAGMYFPDXBNJZSQVHLCKE'''
def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase      ):



    """simple docstring"""





    if not isinstance(UpperCamelCase							,   UpperCamelCase      ):
        lowerCAmelCase__			:  List[Any]											= f"""Expected string as input, found {type(UpperCamelCase      ).__name__}"""
        raise TypeError(UpperCamelCase      )

    lowerCAmelCase__			:  Union[str, Any]											= spanish_id.replace("""-"""							,   """"""      ).upper()
    if len(UpperCamelCase      ) != 9:
        raise ValueError(UpperCamelCase      )

    try:
        lowerCAmelCase__			:  Optional[int]											= int(spanish_id_clean[0:8]      )
        lowerCAmelCase__			:  int											= spanish_id_clean[8]
    except ValueError as ex:
        raise ValueError(UpperCamelCase      ) from ex

    if letter.isdigit():
        raise ValueError(UpperCamelCase      )

    return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
 import doctest

 doctest.testmod()


