from transformers import PretrainedConfig







class 			__snake_case   (     lowerCamelCase__   ):
 __lowerCamelCase    :   Any     =      """custom"""
 def __init__(  self		,   snake_case__=1		,   **snake_case__						)	->							List[str]:
       '''simple docstring'''





       UpperCAmelCase    : Union[str, Any]      =attribute
       super().__init__(**snake_case__						)







class 			__snake_case   (     lowerCamelCase__   ):
 __lowerCamelCase    :   Union[str, Any]     =      """custom"""
 def __init__(  self		,   snake_case__=1		,   **snake_case__						)	->							Optional[int]:
       '''simple docstring'''





       UpperCAmelCase    : Dict      =attribute

from collections import defaultdict





def   lowerCAmelCase_ (				__lowerCAmelCase = 5						)->  int:






      '''simple docstring'''





      UpperCAmelCase    : List[str]      =defaultdict(__lowerCAmelCase						)
      UpperCAmelCase    : Tuple      =0

      while True:
            UpperCAmelCase    : Any      =get_digits(__lowerCAmelCase						)
            freqs[digits].append(__lowerCAmelCase						)

            if len(freqs[digits]						) == max_base:
                  UpperCAmelCase    : Optional[int]      =freqs[digits][0] ** 3
                  return base

            num += 1





def   lowerCAmelCase_ (				__lowerCAmelCase						)->  str:






      '''simple docstring'''





      return "".join(sorted(str(num**3						)						)						)


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