"""simple docstring"""

from __future__ import annotations






class 		_lowercase :



						"""simple docstring"""




						def __init__(				self							:    str     , UpperCamelCase__							:    int				)				->				None:
													'''simple docstring'''



													__UpperCamelCase							=value
													__UpperCamelCase							=None
													__UpperCamelCase							=None






class 		_lowercase :



						"""simple docstring"""




						lowercase__       =  42





						def __init__(				self							:    Dict				)				->				None:
													'''simple docstring'''



													__UpperCamelCase							=0





						def   UpperCAmelCase_ (				self							:    List[str]     , UpperCamelCase__							:    Node | None     , UpperCamelCase__							:    int				)				->				None:
													'''simple docstring'''



													if node is None:
																				return

													if path_sum == self.target:
																				self.paths += 1

													if node.left:
																				self.depth_first_search(node.left     , path_sum + node.left.value				)
													if node.right:
																				self.depth_first_search(node.right     , path_sum + node.right.value				)





						def   UpperCAmelCase_ (				self							:    Union[str, Any]     , UpperCamelCase__							:    Node | None     , UpperCamelCase__							:    int | None = None				)				->				int:
													'''simple docstring'''



													if node is None:
																				return 0
													if target is not None:
																				__UpperCamelCase							=target

													self.depth_first_search(UpperCamelCase__     , node.value				)
													self.path_sum(node.left				)
													self.path_sum(node.right				)

													return self.paths


if __name__ == "__main__":
				import doctest

				doctest.testmod()




"""simple docstring"""

from collections import defaultdict


def    lowerCAmelCase			(__UpperCamelCase							:    int = 5			):
							"""simple docstring"""


							__UpperCamelCase							=defaultdict(__UpperCamelCase			)
							__UpperCamelCase							=0

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

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

														num += 1


def    lowerCAmelCase			(__UpperCamelCase							:    int			):
							"""simple docstring"""


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


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



