




_lowerCamelCase	:		Union[str, Any]							       =   [sum(int(c, 10) ** 2 for c in i.__str__()) for i in range(100000)]







def SCREAMING_SNAKE_CASE				(       lowercase_						)   ->       Optional[Any]:



       """simple docstring"""

       A__       =    0
       while number:
              # Increased Speed Slightly by checking every 5 digits together.
              sum_of_digits_squared += DIGITS_SQUARED[number % 100_000]
              number //= 100_000

       return sum_of_digits_squared


# There are 2 Chains made,
# One ends with 89 with the chain member 58 being the one which when declared first,
# there will be the least number of iterations for all the members to be checked.

# The other one ends with 1 and has only one element 1.

# So 58 and 1 are chosen to be declared at the starting.

# Changed dictionary to an array to quicken the solution
_lowerCamelCase	:		list[bool | None]							       =   [None] * 10000000
_lowerCamelCase	:		Union[str, Any]							       =   True
_lowerCamelCase	:		Tuple							       =   False







def SCREAMING_SNAKE_CASE				(       lowercase_						)   ->       Union[str, Any]:



       """simple docstring"""

       if CHAINS[number - 1] is not None:
              return CHAINS[number - 1]  # type: ignore

       A__       =    chain(next_number(_UpperCAmelCase						)						)
       A__       =    number_chain

       while number < 10_000_000:
              A__       =    number_chain
              number *= 10

       return number_chain







def SCREAMING_SNAKE_CASE				(       lowercase_ = 10_000_000						)   ->       List[Any]:



       """simple docstring"""

       for i in range(1 ,				_UpperCAmelCase						):
              if CHAINS[i] is None:
                     chain(i + 1						)

       return CHAINS[:number].count(_UpperCAmelCase						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  print(F'''{solution() = }''')









"""simple docstring"""




from transformers import BertTokenizerFast

from .custom_tokenization import CustomTokenizer

class  _UpperCAmelCase  (   UpperCAmelCase__		):



      '''simple docstring'''
      lowercase_      : List[str]	    =   CustomTokenizer
      pass