





from __future__ import annotations



def _a				(	lowerCamelCase:   Optional[int] )	->						Optional[Any]:







      '''simple docstring'''






      __A          =				2
      __A          =				[]
      while i * i <= n:
            if n % i:
                  i += 1
            else:
                  n //= i
                  factors.append(A__ )
      if n > 1:
            factors.append(A__ )
      return factors


if __name__ == "__main__":
       import doctest

       doctest.testmod()








'''simple docstring'''






lowerCAmelCase__											=	'''Input must be a string of 8 numbers plus letter'''
lowerCAmelCase__											=	'''TRWAGMYFPDXBNJZSQVHLCKE'''


def 		_A     (    A__      ):






 """simple docstring"""



 if not isinstance(A__     ,				A__      ):
  __lowercase							  = F"Expected string as input, found {type(A__      ).__name__}"
  raise TypeError(A__      )

 __lowercase							  = spanish_id.replace('''-'''     ,				''''''      ).upper()
 if len(A__      ) != 9:
  raise ValueError(A__      )

 try:
  __lowercase							  = int(spanish_id_clean[0:8]      )
  __lowercase							  = 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()

