





"""simple docstring"""






def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE = 10**6				)		->							int:






       """simple docstring"""




       if n <= 0:
              raise ValueError('Please enter an integer greater than 0'				)

       _UpperCAmelCase			     =  list(range(n + 1				)				)
       for number in range(2,n + 1				):
              if phi[number] == number:
                     phi[number] -= 1
                     for multiple in range(number * 2,n + 1,SCREAMING_SNAKE_CASE				):
                            _UpperCAmelCase			     =  (phi[multiple] // number) * (number - 1)

       _UpperCAmelCase			     =  1
       for number in range(1,n + 1				):
              if (answer / phi[answer]) < (number / phi[number]):
                     _UpperCAmelCase			     =  number

       return answer


if __name__ == "__main__":
    print(solution())













"""simple docstring"""






from collections import defaultdict

def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE = 5				)		->							int:






       """simple docstring"""




       _UpperCAmelCase			     =  defaultdict(SCREAMING_SNAKE_CASE				)
       _UpperCAmelCase			     =  0

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

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

              num += 1

def    __lowerCamelCase     (							SCREAMING_SNAKE_CASE				)		->							str:






       """simple docstring"""




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


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






