






"""simple docstring"""


from collections import defaultdict




def 					a			(  UpperCamelCase_				:					Dict = 5		)	->		int:
 __A						:							List[str]      =						defaultdict(UpperCAmelCase__		)
 __A						:							Optional[Any]      =						0

 while True:
  __A						:							Dict      =						get_digits(UpperCAmelCase__		)
  freqs[digits].append(UpperCAmelCase__		)

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

  num += 1




def 					a			(  UpperCamelCase_				:					Optional[Any]		)	->		str:
 return "".join(sorted(str(num**3		)		)		)


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









"""simple docstring"""






import unittest

from transformers import BlenderbotTokenizer, BlenderbotTokenizerFast
from transformers.utils import cached_property


class 	A_       (     unittest.TestCase   ):





  """simple docstring"""

  @cached_property
  def 							lowercase_     (						self						)				->					Optional[Any]:
     return BlenderbotTokenizer.from_pretrained('facebook/blenderbot-3B'						)
  @cached_property
  def 							lowercase_     (						self						)				->					Optional[int]:
     return BlenderbotTokenizerFast.from_pretrained('facebook/blenderbot-3B'						)
  def 							lowercase_     (						self						)				->					Union[str, Any]:
     a   :	List[Any]						=    self.tokenizer_ab
     a   :	int						=    ' I am a small frog.'
     a   :	Any						=    tok([src_text]  ,					padding=__UpperCAmelCase  ,					truncation=__UpperCAmelCase						)['input_ids']
     a   :	List[str]						=    tok.batch_decode(__UpperCAmelCase  ,					skip_special_tokens=__UpperCAmelCase  ,					clean_up_tokenization_spaces=__UpperCAmelCase						)[0]
     assert src_text == decoded
  def 							lowercase_     (						self						)				->					Optional[Any]:
     a   :	Optional[int]						=    self.rust_tokenizer_ab
     a   :	List[Any]						=    ' I am a small frog.'
     a   :	Union[str, Any]						=    tok([src_text]  ,					padding=__UpperCAmelCase  ,					truncation=__UpperCAmelCase						)['input_ids']
     a   :	Optional[Any]						=    tok.batch_decode(__UpperCAmelCase  ,					skip_special_tokens=__UpperCAmelCase  ,					clean_up_tokenization_spaces=__UpperCAmelCase						)[0]
     assert src_text == decoded
  def 							lowercase_     (						self						)				->					Tuple:
     assert self.tokenizer_ab.add_prefix_space
     assert self.tokenizer_ab([' Sam', 'Sam']						).input_ids == [[55_02, 2], [55_02, 2]]






  def 							lowercase_     (						self						)				->					Tuple:
     assert self.rust_tokenizer_ab.add_prefix_space
     assert self.rust_tokenizer_ab([' Sam', 'Sam']						).input_ids == [[55_02, 2], [55_02, 2]]





