"""simple docstring"""

from __future__ import annotations


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


							__UpperCamelCase							=[0] * max_one

							for i in range(0							,					__UpperCamelCase			):
														__UpperCamelCase							=i

							for i in range(2							,					__UpperCamelCase			):
														if totients[i] == i:
																					for j in range(__UpperCamelCase							,					__UpperCamelCase							,					__UpperCamelCase			):
																												totients[j] -= totients[j] // i

							return totients


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


							return sorted(str(__UpperCamelCase			)			) == sorted(str(__UpperCamelCase			)			)


def    lowerCAmelCase			(__UpperCamelCase							:    int = 1_0_0_0_0_0_0_0			):
							"""simple docstring"""


							__UpperCamelCase							=1  # i
							__UpperCamelCase							=0  # φ(i)
							__UpperCamelCase							=get_totients(max_n + 1			)

							for i in range(2							,					max_n + 1			):
														__UpperCamelCase							=totients[i]

														if i * min_denominator < min_numerator * t and has_same_digits(__UpperCamelCase							,					__UpperCamelCase			):
																					__UpperCamelCase							=i
																					__UpperCamelCase							=t

							return min_numerator


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




"""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() = }''')



