


"""simple docstring"""



from collections import defaultdict
def     UpperCAmelCase    (					_lowercase   :      int = 5  )	->   int:


	"""simple docstring"""




	lowerCAmelCase_			       = defaultdict(_lowercase  )
	lowerCAmelCase_			       = 0

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

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

		num += 1
def     UpperCAmelCase    (					_lowercase   :      int  )	->   str:


	"""simple docstring"""




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


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



"""simple docstring"""



def     UpperCAmelCase    (					_lowercase   :      list[int]  )	->   int:


	"""simple docstring"""




	lowerCAmelCase_			       = len(_lowercase  )
	if n in (0, 1):
		return 0
	return sum(query * (n - i - 1) for i, query in enumerate(sorted(_lowercase  )  )  )


if __name__ == "__main__":
		import doctest

		doctest.testmod()