a_							=      """Input must be a string of 8 numbers plus letter"""
a_							=      """TRWAGMYFPDXBNJZSQVHLCKE"""




def       __lowerCAmelCase      (						A_   : Any					)    ->  int:

  if not isinstance(__A						,	__A					):
    __UpperCAmelCase						    =       F'''Expected string as input, found {type(__A					).__name__}'''
    raise TypeError(__A					)

  __UpperCAmelCase						    =       spanish_id.replace("-"						,	""					).upper()
  if len(__A					) != 9:
    raise ValueError(__A					)

  try:
    __UpperCAmelCase						    =       int(spanish_id_clean[0:8]					)
    __UpperCAmelCase						    =       spanish_id_clean[8]
  except ValueError as ex:
    raise ValueError(__A					) from ex

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

  return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
       import doctest

       doctest.testmod()




from abc import ABC, abstractmethod
from argparse import ArgumentParser


class 			UpperCAmelCase__    (		snake_case					):



  """simple docstring"""






  @staticmethod
  @abstractmethod
  def 	_UpperCAmelCase				(				__lowerCAmelCase:			ArgumentParser   ) -> Tuple:




    '''simple docstring'''




    raise NotImplementedError()






  @abstractmethod
  def 	_UpperCAmelCase				(				self:			List[str]   ) -> List[Any]:




    '''simple docstring'''




    raise NotImplementedError()



