
"""simple docstring"""





import numpy as np

_a									=				[
    ['a', 'b', 'c', 'd', 'e'],
    ['f', 'g', 'h', 'i', 'k'],
    ['l', 'm', 'n', 'o', 'p'],
    ['q', 'r', 's', 't', 'u'],
    ['v', 'w', 'x', 'y', 'z'],
]


class A_      :




  '''simple docstring'''







  def __init__(						self    ):

     """simple docstring"""
     UpperCAmelCase_   :   int     	=       np.array(lowercase_    )







  def 			UpperCamelCase__   (						self							,  lowercase_    ):

     """simple docstring"""
     UpperCAmelCase_	,  UpperCAmelCase_   :   int     	=       np.where(letter == self.SQUARE    )
     UpperCAmelCase_   :   Optional[Any]     	=       np.concatenate([indexa + 1, indexa + 1]    )
     return indexes







  def 			UpperCamelCase__   (						self							,  lowercase_							,  lowercase_    ):

     """simple docstring"""
     return self.SQUARE[indexa - 1, indexa - 1]







  def 			UpperCamelCase__   (						self							,  lowercase_    ):

     """simple docstring"""
     UpperCAmelCase_   :   Union[str, Any]     	=       message.lower()
     UpperCAmelCase_   :   int     	=       message.replace("j"							,  "i"    )

     UpperCAmelCase_   :   Union[str, Any]     	=       ""
     for letter_index in range(len(lowercase_    )    ):
        if message[letter_index] != " ":
           UpperCAmelCase_   :   List[Any]     	=       self.letter_to_numbers(message[letter_index]    )
           UpperCAmelCase_   :   Dict     	=       encoded_message + str(numbers[0]    ) + str(numbers[1]    )
        elif message[letter_index] == " ":
           UpperCAmelCase_   :   int     	=       encoded_message + " "

     return encoded_message







  def 			UpperCamelCase__   (						self							,  lowercase_    ):

     """simple docstring"""
     UpperCAmelCase_   :   Any     	=       message.replace(" "							,  "  "    )
     UpperCAmelCase_   :   List[Any]     	=       ""
     for numbers_index in range(int(len(lowercase_    ) / 2    )    ):
        if message[numbers_index * 2] != " ":
           UpperCAmelCase_   :   List[Any]     	=       message[numbers_index * 2]
           UpperCAmelCase_   :   Dict     	=       message[numbers_index * 2 + 1]

           UpperCAmelCase_   :   Tuple     	=       self.numbers_to_letter(int(lowercase_    )							,  int(lowercase_    )    )
           UpperCAmelCase_   :   List[Any]     	=       decoded_message + letter
        elif message[numbers_index * 2] == " ":
           UpperCAmelCase_   :   Optional[Any]     	=       decoded_message + " "

     return decoded_message




"""simple docstring"""





import math
from timeit import timeit







def       __a	(						__lowerCamelCase    ):
   UpperCAmelCase_   :   Tuple     	=       0
   UpperCAmelCase_   :   Any     	=       abs(__lowerCamelCase    )
   while True:
      UpperCAmelCase_   :   Optional[int]     	=       n // 10
      digits += 1
      if n == 0:
         break
   return digits







def       __a	(						__lowerCamelCase    ):
   return 1 if n == 0 else math.floor(math.log(abs(__lowerCamelCase    ),						10    ) + 1    )







def       __a	(						__lowerCamelCase    ):
   return len(str(abs(__lowerCamelCase    )    )    )







def       __a	(						):
   from collections.abc import Callable

   def benchmark_a_function(__lowerCamelCase,						__lowerCamelCase    ) -> None:
      UpperCAmelCase_   :   Optional[Any]     	=       f"""{func.__name__}({value})"""
      UpperCAmelCase_   :   Optional[int]     	=       timeit(f"""__main__.{call}""",						setup="import __main__"    )
      print(f"""{call}: {func(__lowerCamelCase    )} -- {timing} seconds"""    )

   for value in (26_2144, 1125_8999_0684_2624, 126_7650_6002_2822_9401_4967_0320_5376):
      for func in (num_digits, num_digits_fast, num_digits_faster):
         benchmark_a_function(__lowerCamelCase,						__lowerCamelCase    )
      print()


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    benchmark()


