


'''simple docstring'''







import numpy as np

lowerCAmelCase    :     Optional[Any]					=						[
    ["""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 	UpperCamelCase__					:



     """simple docstring"""






     def __init__( self   ):

        '''simple docstring'''

        _lowerCAmelCase    :							Union[str, Any]   			=       np.array(snake_case__   )







     def a	( self      ,	snake_case__   ):

        '''simple docstring'''

        _lowerCAmelCase    :							int   			=       np.where(letter == self.SQUARE   )
        _lowerCAmelCase    :							Dict   			=       np.concatenate([indexa + 1, indexa + 1]   )
        return indexes







     def a	( self      ,	snake_case__      ,	snake_case__   ):

        '''simple docstring'''

        _lowerCAmelCase    :							Tuple   			=       self.SQUARE[indexa - 1, indexa - 1]
        return letter







     def a	( self      ,	snake_case__   ):

        '''simple docstring'''

        _lowerCAmelCase    :							int   			=       message.lower()
        _lowerCAmelCase    :							str   			=       message.replace(' '      ,	''   )
        _lowerCAmelCase    :							List[str]   			=       message.replace('j'      ,	'i'   )

        _lowerCAmelCase    :							List[Any]   			=       np.empty((2, len(snake_case__   ))   )
        for letter_index in range(len(snake_case__   )   ):
           _lowerCAmelCase    :							Optional[Any]   			=       self.letter_to_numbers(message[letter_index]   )

           _lowerCAmelCase    :							int   			=       numbers[0]
           _lowerCAmelCase    :							str   			=       numbers[1]

        _lowerCAmelCase    :							List[Any]   			=       first_step.reshape(2 * len(snake_case__   )   )
        _lowerCAmelCase    :							Tuple   			=       ''
        for numbers_index in range(len(snake_case__   )   ):
           _lowerCAmelCase    :							List[Any]   			=       int(second_step[numbers_index * 2]   )
           _lowerCAmelCase    :							Optional[Any]   			=       int(second_step[(numbers_index * 2) + 1]   )
           _lowerCAmelCase    :							List[str]   			=       self.numbers_to_letter(snake_case__      ,	snake_case__   )
           _lowerCAmelCase    :							Optional[int]   			=       encoded_message + letter

        return encoded_message







     def a	( self      ,	snake_case__   ):

        '''simple docstring'''

        _lowerCAmelCase    :							Tuple   			=       message.lower()
        message.replace(' '      ,	''   )
        _lowerCAmelCase    :							int   			=       np.empty(2 * len(snake_case__   )   )
        for letter_index in range(len(snake_case__   )   ):
           _lowerCAmelCase    :							Optional[Any]   			=       self.letter_to_numbers(message[letter_index]   )
           _lowerCAmelCase    :							Tuple   			=       numbers[0]
           _lowerCAmelCase    :							str   			=       numbers[1]

        _lowerCAmelCase    :							Optional[Any]   			=       first_step.reshape((2, len(snake_case__   ))   )
        _lowerCAmelCase    :							Optional[int]   			=       ''
        for numbers_index in range(len(snake_case__   )   ):
           _lowerCAmelCase    :							Tuple   			=       int(second_step[0, numbers_index]   )
           _lowerCAmelCase    :							str   			=       int(second_step[1, numbers_index]   )
           _lowerCAmelCase    :							str   			=       self.numbers_to_letter(snake_case__      ,	snake_case__   )
           _lowerCAmelCase    :							int   			=       decoded_message + letter

        return decoded_message





'''simple docstring'''







from typing import Any






def 			lowercase				(_A					):







       """simple docstring"""







       if not input_list:
              return []
       _lowerCAmelCase    :							Optional[int]   			=       [input_list.count(_A					) for value in input_list]
       _lowerCAmelCase    :							int   			=       max(_A					)  # Gets the maximum count in the input list.
       # Gets values of modes
       return sorted({input_list[i] for i, value in enumerate(_A					) if value == y}					)


if __name__ == "__main__":
       import doctest

       doctest.testmod()

