






"""simple docstring"""






import itertools




def 						_UpperCamelCase			(  A			):
   return (
       int("".join(combination[0:2]			)			) * int("".join(combination[2:5]			)			)
       == int("".join(combination[5:9]			)			)
   ) or (
       int("".join(combination[0]			)			) * int("".join(combination[1:5]			)			)
       == int("".join(combination[5:9]			)			)
   )




def 						_UpperCamelCase			(  ):
   return sum(
       {
           int("".join(pandigital[5:9]			)			)
           for pandigital in itertools.permutations("123456789"			)
           if is_combination_valid(A			)
       }			)


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








"""simple docstring"""






from collections import defaultdict




def 						_UpperCamelCase			(  A = 5			):
   UpperCamelCase_     =defaultdict(A			)
   UpperCamelCase_     =0

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

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

      num += 1




def 						_UpperCamelCase			(  A			):
   return "".join(sorted(str(num**3			)			)			)


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