




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowerCamelCase__				:     List[Any]			       =							{"configuration_detr": ["DETR_PRETRAINED_CONFIG_ARCHIVE_MAP", "DetrConfig", "DetrOnnxConfig"]}

try:
   if not is_vision_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowerCamelCase__				:     int			       =							["DetrFeatureExtractor"]
   lowerCamelCase__				:     Any			       =							["DetrImageProcessor"]

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowerCamelCase__				:     List[Any]			       =							[
       "DETR_PRETRAINED_MODEL_ARCHIVE_LIST",
       "DetrForObjectDetection",
       "DetrForSegmentation",
       "DetrModel",
       "DetrPreTrainedModel",
   ]


if TYPE_CHECKING:
   from .configuration_detr import DETR_PRETRAINED_CONFIG_ARCHIVE_MAP, DetrConfig, DetrOnnxConfig

   try:
      if not is_vision_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .feature_extraction_detr import DetrFeatureExtractor
      from .image_processing_detr import DetrImageProcessor

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_detr import (
          DETR_PRETRAINED_MODEL_ARCHIVE_LIST,
          DetrForObjectDetection,
          DetrForSegmentation,
          DetrModel,
          DetrPreTrainedModel,
      )

else:
   import sys

   lowerCamelCase__				:     Tuple			       =							_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





from collections import defaultdict

def       UpperCAmelCase_							(   __UpperCAmelCase		:			int = 5							)      ->				int:
      SCREAMING_SNAKE_CASE_					=    defaultdict(__UpperCAmelCase							)
      SCREAMING_SNAKE_CASE_					=    0

      while True:
            SCREAMING_SNAKE_CASE_					=    get_digits(__UpperCAmelCase							)
            freqs[digits].append(__UpperCAmelCase							)

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

            num += 1

def       UpperCAmelCase_							(   __UpperCAmelCase		:			int							)      ->				str:
      return "".join(sorted(str(num**3							)							)							)


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