



'''simple docstring'''





def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase      ):



    """simple docstring"""





    lowerCAmelCase__			:  List[Any]											= 0
    while num > 0:
        digit_sum += num % 10
        num //= 10
    return digit_sum
def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase = 100      ):



    """simple docstring"""





    lowerCAmelCase__			:  Dict											= 1
    lowerCAmelCase__			:  Optional[int]											= 2

    for i in range(2							,   max_n + 1      ):
        lowerCAmelCase__			:  List[str]											= pre_numerator
        lowerCAmelCase__			:  Optional[int]											= 2 * i // 3 if i % 3 == 0 else 1
        lowerCAmelCase__			:  Optional[int]											= cur_numerator
        lowerCAmelCase__			:  Optional[int]											= e_cont * pre_numerator + temp

    return sum_digits(UpperCamelCase      )


if __name__ == "__main__":
 print(F"""{solution() = }""")







'''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()


